difference between initialisation and declearation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ankit kumar
    New Member
    • Sep 2010
    • 1

    difference between initialisation and declearation

    actually compiler what does when statements like initialisation and assignment occur.
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    declaration: Is declaring the name of the variable and type of the variable. Variables are declared only once.

    initialization: is initialization of a variable with a value. If not done it will have default value.

    Regards
    Dheeraj Joshi

    Comment

    Working...