Examveda
Examveda

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

A. Compile time error

B. 10

C. 10.000000

D. Undefined behaviour

Answer: Option D


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer