Write the C code to create a data structure named window tha
Write the C code to create a data structure named \"window\" that contains the data elements \"width\", \"height\", \"name\", and \"color\". Select the appropriate data types for each data element.
Solution
struct window{
float width;
float height;
char name[20];
char color[20];
};
void main()
{
struct database shape;
shape.width = 50.0;
shape.height = 60.0;
shape.name = \"John\";
shape.color = \"red\";
}
