Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between declaration ,defenetion and
initialization of a variable?

Answer Posted / sakthi sudhan

declaration : int a;
declaration means here a is declared as integer variable
initialization : int a = 5;
initialization is whatever you have declared give that
variable some value
definition : int a;
definition is whatever variable you have declared give it's
datatype as here a is declared as integer variable

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I manipulate strings of multibyte characters?

1255


Combinations of fibanocci prime series

1666


Dont ansi function prototypes render lint obsolete?

1194


What is the benefit of using #define to declare a constant?

1146


What are keywords in c with examples?

1146


Write a c program to demonstrate character and string constants?

2243


What does 1f stand for?

1234


What does malloc () calloc () realloc () free () do?

1100


What are c preprocessors?

1239


What are the modifiers available in c programming language?

1273


Explain about C function prototype?

1139


What is a spanning Tree?

1660


What is the difference between the local variable and global variable in c?

1012


What is the difference between constant pointer and constant variable?

1273


what is ur strangth & weekness

2521