adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>         
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).hello5

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?