Examveda
Examveda

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

A. Run time error

B. 3 3

C. 3 5

D. 3 4

Answer: Option D


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function