Examveda
Examveda

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

A. Address of x

B. Junk value

C. 0

D. Run time error

Answer: Option C


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer