Write a function named square whose only parameter is an integer pointer. This function will square the value stored at the location pointed by the pointer parameter. In the main method, declare an...



  1. Write a function namedsquare whose only parameter is an integer pointer.

  2. This function will square the value stored at the location pointed by the pointer parameter.

  3. In the main method, declare an integer variablenum and initialize it to 4. Call the functionsquare from main such that the function will square the value ofnum.

  4. In the main method and after calling the function, print the variablenum.

  5. Specify the output of the program



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here