Question: Problem 1 (CLO 2.1 / PLO S.1) Samputer Programming [15 Points) 1. Create a structure named Card that has two members: 13 points) A character

 Problem 1 (CLO 2.1 / PLO S.1) Samputer Programming [15 Points)

Problem 1 (CLO 2.1 / PLO S.1) Samputer Programming [15 Points) 1. Create a structure named Card that has two members: 13 points) A character pointer named face A character pointer named suit 2. Create an instance of structure Card named acard. 12 points] Write a program which demonstrates the use of the structure member and structure pointer operators. 3. Using the structure member operator, assign aCard's members face and suit the values Create a pointer cardPtr and assign it the address of structure acard. (2 points) 5. Use the printf function to print the members of structure variable acard using the structure 6. Then, use the structure pointer operator with pointer cardPtr to print out the values of 7. Then, use the structure member operator with dereferenced pointer cardPtr to print out the [2 points) "Jack" and "Diamond", respectively. 4. member operator. [2 points) members. [2 points] values of members again. [2 points]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!