Check out example codes for "declaration vs. definition cpp". It will help you in understanding the concepts better.

Code Example 1

\\this is the declaration
int declaration();

\\this is the definition
int definition = 0

Learn ReactJs, React Native from akashmittal.com