What is Constant ?

July 8, 2024 No Comments » Hits : 55






What is Constant ?

  • Initially 5 is Stored in memory location and name x is given to it
  • After We are assigning the new value (3) to the same memory location
  • This would Overwrite the earlier value 5 since memory location can hold only one value at a time

Definition :

Constant means “Whose value cannot be changed

Constant :

  • The value of ’3′,’5′ do not change ,so they are constants
  • In Short the ‘Values of Constant Does not Change‘.