Top

Discussion

What is the output of this C code?

typedef struct p
{
int x, y;
}k;
int main()
{
struct p p = {1, 2};
k k1 = p;
printf("%d\n", k1.x);
}

 

  • A.Compile time error
  • B.1
  • C.Depends on the standard

Answer: B

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment