可能重複:
What is the difference between a definition and a declaration?在C++中聲明C ==定義?
難道糾正在C聲明等於在C++來定義?
int a; /* to declare variabel a in C */
int b = 2; /* to declare and initialize in C */
int c; // to define in C++
int d = 4; // to define and initialize in C++
Dupe of http://stackoverflow.com/questions/1410563/what-is-the-difference-between-a-definition-and-a-claclaration – 2010-01-25 12:30:06
_它是正確的,在C中聲明等於定義在C++?_不,這沒有意義.Declaration和Definition是兩個不同的術語。每個定義都是一個聲明,但每個聲明都不是一個定義。欲瞭解更多信息,請點擊我給出的鏈接。 – 2010-01-25 12:33:28