A SINGLE equals character =  is used to assign a value to a memory address. This memory address is usually in the form of an identifier name.


int myVar ;  // declare an integer called myVar


myVar now has an allocated address space and storage space, BUT it has NOT been assigned a value.


A value can now be assigned using a single equals character:


myVar = 42 ;  //the value 42 has now been assigned to myVar

Leave a Reply