bcc03.c

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

C
20
字号
// Borland produces incorrect error message on line 9

// 5.2.2

int     i;

void f5_2_2( int *const icp )
{
    *icp++;                     // OK - this is perfectly legal.
                                // changing icp itself would be illegal.
    i = *icp;                   // This is to avoid any unreferenced warnings.
}

void main( void )
{
    int * const     icp=&i;

    f5_2_2( icp );
}

⌨️ 快捷键说明

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