Question: In C, create a function that takes 2 int data type variables as parameters and assigns the values of the variables to each other (For
In C, create a function that takes 2 "int" data type variables as parameters and assigns the values of the variables to each other (For example: a = b, b = a). Create 2 global variables of data type "int", assign values and call the function by entering these variables as parameters to the function you created. Then print the globally assigned values to the console using the "printf ()" function. Repeat the same process by creating 2 "int *" data type variable field functions as parameters. Examine the values you printed on the console. Observe the differences.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
