Question: Write a function that takes no input parameters and returns an integer. Inside the function, create an integer variable, and set the variable to be
Write a function that takes no input parameters and returns an integer. Inside the function, create an integer variable, and set the variable to be a random number between 0 and 50 (excluding 50). Print out the value and the address of this variable. Return this value from the function. Now in your main function, set an integer variable to this returned value. Print out both the value and the address of this integer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
