Top

Discussion

What is the output of this program?

#include          
void main()
{
struct demo{
    char * a;
    int n;
};

struct demo p = {"hello", 2015};
struct demo q = p;
printf("%d", printf("%s",q.a));
}

 

  • A.hello
  • B.5hello
  • C.hello5
  • D.6hello

Answer: C

No answer description available for this question

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

Post your comment