Last Updated :
28 Feb, 2019
What will be the output of the following program?
#include <stdio.h>
struct p
{
int x=1, y=2;
} ptr;
int main()
{
printf(\"%d %d\", ptr.x,ptr.y);
}
(A) 0 0
(B) 1 2
(C) Error
(D) None of these
Answer: (C)
Explanation:
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...