In main, declare a pointer to the integer variable Print the address of both the integer and
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Posted Date: