-->
当前位置:首页 > 题库

PROGRAMMING:Output alphabet - array traversal

Luz5年前 (2021-05-10)题库363
Analyze the following code to understand array traversal.
```
#include
int main(){
char c[26],i;
for(i=0; i<26; i++)
c[i]='A'+i;;
for(i=0; i<26; i++){
if(i>0) printf(" ");
printf("%c%c",c[i],c[i]+32);
}
return 0;
}
```
###Input example:
```in
```
###Output example:
```out
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz
```







answer:If there is no answer, please comment