adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
int main(){
    struct leader
 {
 char *lead;
 int born;
 };
 struct leader l1 = {"AbdulKalam", 1931};
 struct leader l2 = l1;
 printf("%s %d", l2.lead, l1.born);
}

a.

Compilation error

b.

Garbage value 1931

c.

AbdulKalam 1931

d.

None of the above

Answer: (c).AbdulKalam 1931

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?