XZKL 发表于 2018-6-14 09:12:58

无法执行

#include<studio.h>

void main()
{
      printf("%d\n,sizeof(int));
}

    无法执行

影乖 发表于 2018-6-14 09:19:51

#include<studio.h>

void main()
{
      printf("%d\n",sizeof(int));
}

Charles未晞 发表于 2018-6-14 09:28:09

双引号少了一个。。。
printf("%d\n", sizeof(int));
这样才行

戚晓栖 发表于 2018-6-14 09:37:20

#include<studio.h>这是什么鬼?用stdio.h
printf("%d\n,sizeof(int));\n后面少一个双引号

xypmyp 发表于 2018-6-14 12:07:13

This file contains so-called function prototypes of functions such as printf(), scanf(), etc. So that compiler knows what are their parameters and return values.

*The code for the printf() , scanf() function is not in stdio.h, just the function definition. The linker later resolves this when linking to the standard library.

XZKL 发表于 2018-6-14 21:32:24

谢谢
页: [1]
查看完整版本: 无法执行