wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following code:

int *p;void fun( ){static int x = 1;static int y = 2;x = x + y;y = x - y; p = &x;}void main( ){fun( );fun( );printf ("%d", *p);}

A
5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
4
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon