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 / siddiqui mohd. faisal

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 ?    32 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the best way to comment out a section of code that contains comments?

1128


What are the types of variables in c?

1003


Can you pass an entire structure to functions?

1108


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

956


What is a 'null pointer assignment' error?

1199


Does free set pointer to null?

988


What is use of integral promotions in c?

1129


Why is c called a structured programming language?

1264


How do you list a file’s date and time?

1053


What is a buffer in c?

990


how to write a c program to print list of fruits in alpabetical order?

2282


i want to know the procedure of qualcomm for getting a job through offcampus

2453


write a c program to find the sum of five entered numbers using an array named number

2120


What is function definition in c?

1068


what is reason of your company position's in india no. 1.

2303