Question: What will be the contents of a array after the following statements are executed? #define N 10 int a[N] = {10, 10, 6, 4, 2,
What will be the contents of a array after the following statements are executed?
#define N 10
int a[N] = {10, 10, 6, 4, 2, 4, 6, 8, 10, 10};
int *p = &a[0], *q = &a[N-1];
while(p *p = *q; *q= *p; q--; }
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
