Question: PLEASE ASAP IN C language (Global Scope 5 (5 MARKS] 6 7 Complete the program below by providing the code for the swap() function. 8
PLEASE ASAP IN C language
(Global Scope 5 (5 MARKS] 6 7 Complete the program below by providing the code for the swap() function. 8 The swap function should interchange the x-value and the y-value. You MAY 9 NOT CHANGE ANY CODE in the main() function. je Note that the function swap() will take two arguments. Since two values are 12 changed in the main() function, the arguments must be passed by reference, 13 The name, ID and section number that appear at the beginning of the output 15 of the program should be your own, not the ones used in the sample. 16 17 Sample run 1: ------ 18 19 My name: Smith, Peter My ID: 309999999 My section: 001 2e 21 Initial values of x-coordinate and y-coordinate: 124875. 369 22 23 Final values of x-coordinate and y-coordinate: 369124875 24 Press any key to continue... 25 26 PROGRAM OUTPUT 27 Provide a sample run similar to the one above and paste it to your WORD document: 28 29 30 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
