Question: Write a C program that creates a structure template with two members according to the following criteria: 1. The first member is a social security
Write a "C" program that creates a structure template with two members according to the
following criteria:
1.
The first member is a social security
number.
2.
The second member is
a structure with two members.
a.
The firs
t member contains a first name;
b.
T
he second member contains a last name.
The program should
:
1.
D
eclare a
n
array with 5 elements and
initialize its elements
.
a.
The
elements
of the array
should be
composed of
the structure described
above.
b.
Initialize or assign
different
names
and social security numbers
to each of the
array elements.
2.
Print the 5 sets of social security numbers and names (last name, first name) in the
format shown below:
400541224
--
Hanks, Tom
Write a program that creates a structure template with two members according to the following criteria: l. The first member is a social security number. 2. The second member is a structure with two members. a. The first member contains a first name; b. The second member contains a last name. The program should: l. Declare an array with 5 elements and initialize its elements. a. The elements of the array should be composed of the structure described above. b. Initialize or assign different names and social security numbers to each of the array elements. 2. Print the 5 sets of social security numbers and names (last name, first name) in the format shown below: 400541224 Hanks, Tom
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
