Question
Please write in C++! Thank you (3 pts) In your main function, create a variable x that holds an integer (any integer you want). Print
Please write in C++! Thank you
(3 pts) In your main function, create a variable x that holds an integer (any integer you want). Print out the address of x in the main. Now write a function that is called by pointer with an integer. Pass in the variable xs address. In the function print out the value at the address, the address in the parameter, and the address of the parameter.
(3 pts)In your main function, create a variable y that holds an integer (again, pick an integer). Print out the value in y and the address of y. Now, using call by reference, write a function with an input parameter. Print out the address and the value of the input parameter.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started