Live quiz

C Programming - Part 53

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following C code? #include <stdio.h> void f(int (*x)(int)); int myfoo(int i); int (*foo)(int) = myfoo; int main() { f(foo(10)); } void f(int (*i)(int)) { i(11); } int myfoo(int i) { printf("%d\n", i); return i; }

  • A
  • B
  • C
  • D