What would be the output of the following program
int a[10]={0,1,2,3,4,5,6,7,8,9};
int *p;
p = a;
for (int i= 9; i>= 0; i--)
{
*(p+((i-1)%10)) = i;
printf("%p\n",p);
}
What would be the output of the following program int a[10]={0,1,2,3,4,5,6,7,8,9}; int *p; p = a; for (int i= 9; i>= 0;
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am