Question: Using the following structure definition: struct point 2 D { int x; int y; } ; Complete the code to: 1 ) Declare the structure
Using the following structure definition:
struct pointD int x; int y; ;
Complete the code to:
Declare the structure variable. Get the input from the keyboard and store it into your structure variable members x and y Swap the values of the members x and y of your structure variable only if x and y are greater than zero. Print the values of the members of your structure variable.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
