Saturday, 28 March 2015

what is variable

  • Variable is a memory location which can hold value. (temporarily) 
  • It is called variable because value of  a variable can be changed.
  • At a particular time it can hold only one value.
Declaration of a variable

int x ;
Here int is the DataType  and x is the Variable-name

syntax :  DataType Variable-name ;






No comments:

Post a Comment