特牛网址导航

GNU C和standard C(ANSI/ISO)区分实例_使用 gnu c标准 编译cdiamante-CSDN博客

网友收藏
第一:符合ansi标准的实例:[root@localhost ansi]# vim ansi.c#include <stdio.h>int main(void){const char asm[] = "6502"; printf("The string asm is '%s'\n",asm); return 0;}首先用GNU C的标准来编译[root@localhost ansi]# gcc -Wall -O ansi.c -o ans_使用 gnu c标准 编译cdiamante