Write a program that 1) Has two routines change_values () and square _ of _ number ( ). 2) Main program passes addresses of variables x and y to change_ values () and square of_number ( ). 3) Initial...


Write a program that<br>1) Has two routines change_values () and square _ of _<br>number ( ).<br>2) Main program passes addresses of variables x and y to<br>change_ values () and square of_number ( ).<br>3) Initial values of x and y are 4 and9. Change values ()<br>is invoked first and it increments the value of the<br>variables by 1.<br>4) Calculate the square of variables x and y using square_<br>of_ number ( ) routine. Print the squares of x and y.<br>

Extracted text: Write a program that 1) Has two routines change_values () and square _ of _ number ( ). 2) Main program passes addresses of variables x and y to change_ values () and square of_number ( ). 3) Initial values of x and y are 4 and9. Change values () is invoked first and it increments the value of the variables by 1. 4) Calculate the square of variables x and y using square_ of_ number ( ) routine. Print the squares of x and y.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here