Examveda
Examveda

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

A. Compile time error

B. Segmentation fault/runtime crash

C. 10

D. Undefined behaviour

Answer: Option A


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer