What is definition , declaration and intializations with respect to variables please explain with example

what is definition , declaration and intializations with respect to variables please explain with example

Hey @dhruvilcodes
Definetion/delaration are same thing

int a;
float b;
char c;

these all are declarations

Initialization

a=5;
b=5.3;
c='!';

These all are initialization of varaibles.

1 Like