msc01.c

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 13 行

C
13
字号
extern void f1();
extern int f2();

void foo()
{
        0 ? f1() : f2() ;  // one void, one int
}

/*
error : Value of type void is not allowed
all compilers except Borland 2.0 and MS 7.0 catch this
*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?