1   1  /  1  页   跳转

哪里出错了/

哪里出错了/

#include "stdio.h"
#include "conio.h"
void main()
{
    char a[4]="我";
    printf("%c\n",a[4]);
    getch();
}

为什么结果输出的不是"我"而是"?"
如果编写错误,那要怎样才能输出"我"?
最后编辑2006-10-03 09:13:22
分享到:
gototop
 

#include "stdio.h"
改成#include "conio.h"
void main()
{
char a[4]="我";
printf("%s\n",a);
getch();
}
就行了

问一下%s是什么意思
gototop
 

?
gototop
 
1   1  /  1  页   跳转
页面顶部
Powered by Discuz!NT