Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

In C++ My output looked like: Enter a value of A: 5 Enter a value of B: 10 Value of prtA is 5 stored in

In C++
image text in transcribed

My output looked like:

Enter a value of A: 5 Enter a value of B: 10 Value of prtA is 5 stored in address 0x61fe0c Value of ptrB is 10 stored in address 0x61fe08
Write a program that asks the user to enter integers as inputs to be stored in the variables 'a' and 'b' respectively. There are also two integer pointers named ptrA and ptrB. Assign the values of 'a' and 'b' to ptrA and ptr respectively. Display the values input and the memory address where they are located

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions