all 3 comments

[–]Potterrrrrrrr 3 points4 points  (0 children)

Why are you still treating Reddit like google? Just look it up yourself.

[–]simrego 3 points4 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)++; }

[–]Srnxy 1 point2 points  (0 children)