Question: What is the output of the following c code? #include # include int main () {int temp [5] = {1, 3, 2, 4, 5} int
What is the output of the following c code? #include # include int main () {int temp [5] = {1, 3, 2, 4, 5} int x = 0, y = 5, z = 1; int *pl, *p2; pl = temp; x = *pl p2 = pl p1 ++; y = *p2; pl = & temp[3]; z = *p1 + 1; printf("x = %d, y = %d, z = 5d ", x, y, z); return 0;}
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
