Definitions

Definitions – aka initialisation

 

Variables are defined/initialised by use of the assignment operator =

 

int myVar ; //declaration only

 

myVar = 123 ; //definition only

 

int myVar = 500 ; //declaration and definition

Leave a Reply