Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    m();
    printf("%d", x);
}
int x;
void m()
{
    x = 4;
}

A. 4

B. Compile time error

C. 0

D. Undefined

Answer: Option B


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function