Home > Back-end >  A character array emissions in reverse chronological order
A character array emissions in reverse chronological order

Time:12-31

Char a [10]="CDFGHJKL";
Int temp, I, j;
for(i=0; i<10; I++) {
for(j=0; J<10-1 the -i; J++) {
Temp=a, [j].
a[j]=a[j+1];
A=\ [j + 1];
}
}
for(i=0; i<10; I++) {

Printf (" % c ", a [I]);
}
Q; The role of the two loops and can you write in a loop

CodePudding user response:

Can't write in a cycle, one is sorting, one is the output
  • Related