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
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;