Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In C language programming, the values are stored in an 8-length plastic array in reverse order.
In C language programming, the values are stored in an 8-length plastic array in reverse order.
# include & ltstdio.h & gt

int main()

{int a[8]={ 1,2,3,4,5,6,7,8},I,j,t;

for(i=0,j = 7; I & ltj;; i++,j -)

{ t = a[I]; a[I]= a[j]; a[j]= t; }

for(I = 0; I<8; i++)

printf("%d ",a[I]);

Returns 0;

}