What happens when you attempt to compile and run the following code?
#include
int main()
{ int x=0; int *ptr;
ptr = &x; cout<
B. It prints address of ptr
C. It prints: 1
D. It prints: 2
What happens when you attempt to compile and run the following code?
#include
int main()
{ int x=0; int *ptr;
ptr = &x; cout<
B. It prints address of ptr
C. It prints: 1
D. It prints: 2