Vidyalelo
C Programming · Q124

Structure and Union

Programming · C Programming · question 124

Q124

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

A.
Compile time error
B.
Undefined behaviour
C.
Depends on the standard
D.
10
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board