Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int bounce(int a);
- int caller ((int(*function), (int), int b);
- int main() {
- int num;
- int (*fptr) (int)=bounce;
- num=(*fptr) (10);
- printf("Returned value: %d \n", num);
- num=caller(fptr, 5);
- printf("Returned value; %d \n", num);
- return 0;
- }
- int bounce(int a) {
- printf("\n Received value: %d \n", a);
- return ((3 * a) + 3);
- }
- int caller((int(*function) (int), int b) {
- (function*) (b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement