Question: C++ code and please not too advanced Write a program that declares and initializes three integer variables x, y and z with some integer values.

C++ code and please not too advanced
Write a program that declares and initializes three integer variables x, y and z with some integer values. It then declares a pointer ptr to an integer variable. Using ptr, address of (&) and dereferencing (*) operators, increment each of the variables x; y, z, by one and print those updated variables. Create pointers using new. Make sure to delete pointes at the end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
