0
下面的代碼片段工作:原因一個代碼片段工作,但不是其他
main()
{
struct book
{
char name[20];
int noof;
float prices;
};
struct book b={0};
printf("%d %f", b.noof, b.prices);
}
在這裏,我name[ ]
被intialised爲0,但下面的代碼段無法正常工作:
main()
{
char c[ ]=0;
printf("%c", c[0]);
}