Question: in c language i need exercise 3 and exercise 4 answered Exercise 3 Call by Reference: Swap Numbers In main ask the user to enter

in c language i need exercise 3 and exercise 4 answered in c language i need exercise 3 and exercise 4 answered Exercise

Exercise 3 Call by Reference: Swap Numbers In main ask the user to enter two numbers. Pass the two numbers entered as parameters onto function void mySwap. In void mySwap swap the two numbers (mySwap returns no values to main). Print the swapped numbers from within main function Note: Use only Call-by-reference to pass values to mySwap, do not use any global variables or the built-in stap function Exercise 4 Compare arrays In main, create and initialize two int arrays with values, (1, 2, 3, 4, 5) and (1, 2, 0, 4, 5), respectively. Using a for loop to check whether the corresponding values of the arrays are equal. If two corresponding elements are equal print equal otherwise print unequal Note: The output should be: Equal, Equal, Unequal, Equal, Equal

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!