What will be the output of the following program on GCC compiler?

Loading

โœช Choose the correct option.

What will be the output of the following program on GCC compiler?

#include   
int main() {
int arr[]={0,1,2,3,4};
int i,*p;
for(p=&arr[4];p>=&arr[0];p--)
printf("%d,",*p );
return 0;
}

A. 0,1,2,3,4,
B. 4,3,2,1,0,
C. 0,0,0,0,0,
D. Compiler Error

Leave a Comment