Write a pass by reference function called swap


Problem:

Question 1- Write the code for a functiom called computerSquares. it has a return value of int and two int input parameters, i.e. int x and int y. your function computes the result of x squared plus y squared and returns that result as an integer

Question 2- Write a pass by reference function called swap ( and its defination aka code) that takes in two integers numbers and swaps the values. for example if x and y are two variables with values 7 and 3 respectively. then swap(x,y) will result in x having a value of 3 and y having a value of 7.

Please show code with comments so I can follow what you are doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a pass by reference function called swap
Reference No:- TGS0893732

Expected delivery within 24 Hours