Top

Discussion

What will be the output of the following C code?

#include 
    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