Predict the output:
#includestdio.h
#includestring.h
struct bodydetails{
float height;
float weight;
char name[50];
};
int main()
{
struct bodydetails bd[100];
bd[0].height=6.0;
bd[0].weight=48.0;
strcpy(bd[0].name, "dhanush");
printf("name=%s\nheight=%f\nweight=%f\n",bd[0].name,bd[0].height,bd[0].weight);
return 0;
}


Posted on by