Question: In main, declare a pointer to the integer variable Print the address of both the integer and the pointer using its hexadecimal address. Print the
In main, declare a pointer to the integer variable Print the address of both the integer and the pointer using its hexadecimal address. Print the value of both the integer and the pointer. Create a function prototype called squareInteger Pass the argument to a function by reference of your integer variable created above The function should square it using the “dereferencing” operator. Add a function call to your program and print out the new value of the integer In main, declare an array of 10 integers like so, intarr[10] = {0,1,2,3,4,5,6,7,8,9}; Declare a pointer to the array Use a for loop to print out the value of the array and its address
Step by Step Solution
3.32 Rating (152 Votes )
There are 3 Steps involved in it
To address your programming task lets break it down into steps to ensure clear and thorough implementation Step 1 Declare Variables and Pointers Decla... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
6096e55bb45fc_27302.pdf
180 KBs PDF File
6096e55bb45fc_27302.docx
120 KBs Word File
