Examveda

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

A. 8 3

B. 3 8

C. 8 5

D. 5 3

Answer: Option A


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function