Page 1 of 1

Given the codes below. Draw a memory layout of pointers and variable(i-ii). What is the output (iii)? i) ii) iii) = 11;

Posted: Fri Jul 01, 2022 5:52 am
by answerhappygod
Given The Codes Below Draw A Memory Layout Of Pointers And Variable I Ii What Is The Output Iii I Ii Iii 11 1
Given The Codes Below Draw A Memory Layout Of Pointers And Variable I Ii What Is The Output Iii I Ii Iii 11 1 (46.61 KiB) Viewed 33 times
Given the codes below. Draw a memory layout of pointers and variable(i-ii). What is the output (iii)? i) ii) iii) = 11; int x int y = 20; int* ptr; ptr=&y; *ptr=*ptr + x; cout << x<<" "<<y;