Page 1 of 1

Hi can you please help in this assignment in C++ programming language as soon as possible.

Posted: Fri Jul 01, 2022 5:33 am
by answerhappygod
Hi can you please help in this assignment in C++ programminglanguage as soon as possible.
Hi Can You Please Help In This Assignment In C Programming Language As Soon As Possible 1
Hi Can You Please Help In This Assignment In C Programming Language As Soon As Possible 1 (37.26 KiB) Viewed 29 times
1. Given the codes below. Draw a memory layout of pointers and variable(i-ii). What is the output (iii)? i) ii) III) int x = 11; int y = 20; int* ptr. ptr=&y; *ptr=*ptr +x; cout <<x<<" "<<y; 2. Given a memory layout, write a c++ command to implement it. pointVar Ox61ff08 var points to address of var (&var) i) varPoint = var; ii) iii) iv) Ox61ff08 3. State whether the statement (i-iv) is RIGHT or WRONG and why. int var, "varPoint; *varPoint = &var; varPoint = &var; *varPoint = var;