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;
Posted: Mon Mar 21, 2022 4:39 pm
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);
}
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);
}