Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c language 12. Consider the following C code. After execution of each steps numbered I, II, III and IV, how does the value of x
c language
12. Consider the following C code. After execution of each steps numbered I, II, III and IV, how does the value of x and y change? int main(void) { int x = 5, y = 15; int * p 1 =&x, * p2=&y: *p1 = 10; *p2 = *p1; 7/11 p1 = p2 7/111 *p1 = *p2+10; //IV return 0; } a) 1)x=15, y=10 11) x=15, y=15 III)x=15, y=15 IV) x=20, y=15 b) 1)x=15, y=10 II) x=10, y=10 III) x=10, y=10 IV)x=20, y=10 c) O 1)x=10, y=15 II)x=15, y=15 III) x=15, y=15 IV) x=20, y=15 d) 1)x=10. y=15 II)x=10, y=10 III) x=10, y=10 IV) x=10, y=20Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started