Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. How is a structure different from an array? 2. Declare an array of 10 Person

ID: 3655720 • Letter: 1

Question

1. How is a structure different from an array?
2. Declare an array of 10 Person structures named peopleArray.

3.What must be true of the arguments to strcat(s1, s2); More than one answer may be correct Answer s1 must be valid strings s2 must be a valid string s1 must have room to contain the result s2 must have room to contain the result



4.
Assume the following structure definition and declaration:

struct Person
{
char name[50];
int age;
};

Person people[265];

Assuming that the people array contains 265 valid structs, write code to print out the age member for each item in the structure.
1. How is a structure different from an array?
2. Declare an array of 10 Person structures named peopleArray. 2.

3.What must be true of the arguments to strcat(s1, s2); More than one answer may be correct s1 must be valid strings s2 must be a valid string s1 must have room to contain the result s2 must have room to contain the result



4.

s1 must be valid strings s2 must be a valid string s1 must have room to contain the result s2 must have room to contain the result



4.
Assume the following structure definition and declaration:

struct Person
{
char name[50];
int age;
};

Person people[265];

Assuming that the people array contains 265 valid structs, write code to print out the age member for each item in the structure.

Explanation / Answer

Structure and union are data stores, arrays are collections of a data type. c