Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ programming Pointers Create a program that creates and initializes: a character, an int, a short, a long, a double, a float Create pointers to

C++ programming

Pointers

Create a program that creates and initializes: a character, an int, a short, a long, a double, a float

Create pointers to each.

creates and initializes 6 integer values.

creates and initializes an integer pointer

prints out: the value of the integer value, the value of its address, the value of the pointer and the value the pointer points at.

Change the integer value using the pointer.

print it all out again.

repeat for the other five integers.

Your result should look something like the picture...but little bit different..

image text in transcribed

C: users ct-d121aldocumentsAvisual studio 2013 Value1 3 address of value1 005 3FCOC value of pointer 005 3FCOC value where pointer is looking 3 value1: 9 address of value1 005 3FCOC value of pointer 005 3FCOC value where pointer is looking 9 value 10 address of value2 0053FC00 value of pointer 005 3FCOO value where pointer is looking: 10 value 30 address of value2 0053FC00 value of pointer 005 3FCOO value where pointer is looking: 30 value3: 31 address of value3 005 3FBF4 value of pointer 005 3FBF4 value where pointer is looking 31 value 93 address of value3 005 3FBF4 value of pointer 005 3FBF4 value where pointer is looking 93 Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Y = 3x + 2

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago