Question: Write a complete C program in which you: define a structure named object containing a string field for a name, an integer for feet, and
Write a complete C program in which you:
- define a structure named object containing a string field for a name, an integer for feet, and another for arms.
- declare an array named "bodies", of this structure whose size is 4.
- fill each field (one by one) with the data below and use a for loop to print them out as shown, EXACTLY, in the following output:
Object 1 is a Human Being with 2 legs and 2 arms.
Object 2 is a Dog with 4 legs and 0 arms.
Object 3 is a Television with 4 legs and 0 arms.
Object 4 is a Chair with 4 legs and 2 arms.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
