open09.c

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

C
15
字号
/* should this be diagnosed? NO. this example works */
struct S {
    static int foo( int x, int z = 3, int y = foo(1) )
    {
        if( x == 1 ) return 1;
        return y;
    }
};

void main( void )
{
    S::foo(4);
    S::foo(1);
}

⌨️ 快捷键说明

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