General syntax of structure in C or C++:
sample structure definition:
The difference in the two can be possible but not the same declaration may miss both the structure name or variables.
to assign or access the structure element:
on the screen, you will see:
See the complete sample program:
#include stdio.h /*enclose this library in <> */
printf("\nYou are %f inches tall",my_info.height);
printf("\nYou weigh %s kilograms",my_info.weight);
What is the output of the code above?
Translate this in C++.