======================== oOO ==(_)== OOo ============ = ===========--Roberto Nunnari -software engineer-mailto:ro**@nunnisoft.ch http://www.nunnisoft.chResidenza Boschetto 12 tel/fax: +41-91-60465116935 Bosco Luganese """ mobile: +41-76-3208561Switzerland (o o)========================oOO==(_)==OOo============= =========== DYOH。或者如果你不是DYOH,至少是RTFW。 - Er*********@sun.com 这会调用未定义的行为,因为可变长度数组类型 与普通数组类型不兼容,但是这是我最接近的。显然是C99。 #include< stdio.h> int main(int argc,char * argv [static printf(" ; Hello World \ nn),0]) { } 还有 #error" Hello World" 但我不认为这是一个程序。 杰里米。This invokes undefined behaviour, because variable length array typesaren''t compatible with normal array types, but it''s the closest Icould get. It''s C99, obviously.#include <stdio.h>int main(int argc, char *argv[static printf("Hello World\n"), 0]){}There''s also#error "Hello World"but I don''t consider that a program.Jeremy. 这篇关于“Hello World”没有分号的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!