Given the following declarations and assignments, determine the out of the following 2 cout statements: int one; int* p

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Given the following declarations and assignments, determine the out of the following 2 cout statements: int one; int* p

Post by answerhappygod »

Given the following declarations and assignments, determine the
out of the following 2 cout statements:
int one;
int* ptrOne;
one = 10;
ptrOne = &one;
cout << ptrOne; //1- determine the output of this
statement in your reply
cout << *ptrOne; //2- determine the output of this
statement in your reply
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply