h> int* larger(int*, int*); void main() { int a = 15; int b = 92; int *p; p = larger(&a, &b); printf("%d is larger",*p); } int* larger(int *x, int *y) { if(*x > *y) return x; else return y; } type (*pointer-name)(parameter);
You can use pointers to call functions and send functions to other functions as arguments. On pointers to functions, you can't do pointer arithmetic.
When giving arguments to a function, the call by pointer method converts the address of an argument into the formal parameter. The address is utilised within the function to obtain the actual parameter used in the call. Changes to the parameter have an impact on the passed argument.
Like conventional pointers, function pointers point to code. The name of the function can be used to get the address of the function in Functions Pointers. A function can also be returned from a function and supplied as an argument.
We shall not allocate or deallocate memory since it is used to execute a block of code.
Learner's Ratings
4.4
Overall Rating
69%
18%
5%
4%
4%
Reviews
H
Harshad Futane
5
i am studying 7 th standard in semi english school of pimpri
i am founding the best free classes of programing
and i found it the name of class is *LEARNVERN*
and the class is best.
THANK YOU
A
Avinash Kumar
4
The Course is Amazing and content is also amazing bu i want the notes please provide that sir ..
I
Ishant kumar
4
best
K
Krishna dhangar
5
nice,teaching
A
Ashutosh Thakkar
5
It is as same as any college can offer or if you refer any book this as same as that. Great teaching of C language. I am really happy about this course
I
Ishant Kumar
5
i love c language
P
PATAN MASTHAN
5
sir need c notes it is very useful us to read after listening class so i request u do please provide notes......................masthimasthan786@gmail.com this is my mail
L
Lalita
5
this courses are very helpful. thank you so much.
B
Biwek Gorai
5
I like this course , thank you for your free courses, your free course many people for helpful.
Share a personalized message with your friends.