#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[])
{
char word[100];
scanf("%s",&word);
printf("hello, %s\n",&word);
system("PAUSE");
return 0;
}
----------------------解釋---------------------------------
char 是 C 語言中的一種資料型別(data type),用來儲存字元(character)
*這一題須注意要改成字元陣列*
%s → 字串(string)