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 / gg

As i know.....
Definition is one which allocates memory.
Ex: int x;

Declaration never occupy any memory space.
Ex:Function prototype declarations such as....
int func(int,int);

Initialization: If any variable assigned with some value at
time definition itself is called initialization.
Ex:int x=0;

Is This Answer Correct ?    35 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to reverse singly link list.

1075


How can I find out if there are characters available for reading?

1058


What does a pointer variable always consist of?

1045


code for replace tabs with equivalent number of blanks

2102


string reverse using recursion

2376


How can I access an I o board directly?

1040


What does %p mean?

1037


What's the total generic pointer type?

1014


What is the use of putchar function?

1011


What is a #include preprocessor?

1079


What is a ternary operator in c?

1060


How #define works?

1052


What is a header file?

1033


What is the modulus operator?

1154


What is the difference between the = symbol and == symbol?

1056