Interview Problem List
Login
New update is available. Click here to update.
Topics
Problem
Pointers Output
Easy
0/10
Problem statement
Send feedback
What will happen in this code?
int a = 100, b = 200; int *p = &a, *q = &b; p = q;
Options:
One or more answers may be correct
One or more answers may be correct
b is assigned to a
p now points to b
a is assigned to b
q now points to a
Settings