到目前为止,我知道两种风格:
/* 1st style */ int foo(int a) { return a; } /* 2nd style */ int foo(a) int a; { return a; }
(我看到有人在第二种风格中编写代码.我最初感到很惊讶,但第二种风格有效(在我测试的gcc下).这让我很好奇,我想问这个问题.)
c function
c ×1
function ×1