refresh C

Have to write come code in C, refresh memory here.

1)  ( a > b ) ? a : b; // Get the max from a, b.

2) sizeof( void )
In Windows Visual C++ 6.0, this is a syntax error. error C2070: illegal sizeof operand.
In RedHat gcc version 3.2 20020903, it was 1.

3) int number: 0x#### -- 16 based, 0#### 8 based.

4) Special char
\xhh  -- byte with hexadecimal value hh
char c2 = '0x90';

5)

posted on 2004-04-18 13:48  CodeOne  阅读(217)  评论(0)    收藏  举报

导航