English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
所有分類

Display the value of element 7 of character array F

2007-11-30 05:33:50 · 1 個解答 · 發問者 dkny.33 1 in 電腦與網際網路 程式設計

1 個解答

//Power by Visual Studio 2005
//Download Site: http://www.microsoft.com/taiwan/vstudio/express/
#include
#include
#include
int main(int argc, char* argv[]){
//=====START=====//
char F[27];
int i;
for(i=0;i<26;i++){
F[i]='A'+i;
}
F[i]='\0',printf("%s\n",F),i=7;
printf("F[%d]= %c\n",i,F[i]);
//=====END=====//
system("PAUSE");
return 0;
}

2007-12-01 08:29:25 · answer #1 · answered by Big_John-tw 7 · 0 0

fedest.com, questions and answers