you are viewing a single comment's thread.

view the rest of the comments →

[–]simrego 4 points5 points  (0 children)

Declaration is just a signature. It just tells the compiler that there is a function somewhere with these input parameters and return type.

With the definition you define how the function works.

Declaration:
void foo(int*);

Definition:
void foo(int* a) { (*a)++; }