What is the output of this program?
#include
int main(){
struct leader
{
char *lead;
int born;
};
struct leader l1 = {"AbdulKalam", 1931};
struct leader l2 = l1;
printf("%s %d", l2.lead, l1.born);
}
Answer: C
We can assign one structure member to the another structure member as like normal variable assignmentation. We can access the same values using different structure variables.