Examveda

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

A. Compile time error

B. Undefined behaviour

C. Depends on the standard

D. 10

Answer: Option D


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union