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
A
Abhinay Pandey
5
Best plateform for beginners student,those study any language
S
Shaharbano Manihar
5
very good platform for learn programming languages
K
kamlesh kumawat914
5
supper
J
Jitender sharma
5
mast
B
BHUPAL SINGH
5
Bahut achha paryas behtreen skill for teach c programming love u athrva bro
T
Tech AmitCS
5
most imfrodt...............
S
shubham jangid
5
Nice for BCA students to learn programming.
A
Anjali malviya
5
C language program
M
Malhar Dapse
5
good good
P
Patel tishika
5
this application is very helpfully for learning to programing languages.
Share a personalized message with your friends.