- 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 32 times
Given the codes below. Draw a memory layout of pointers and variable(i-ii). What is the output (iii)? i) ii) iii) = 11;
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Given the codes below. Draw a memory layout of pointers and variable(i-ii). What is the output (iii)? i) ii) iii) = 11;
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;