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

If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3918


Is null a keyword in c?

1194


Tell me what is null pointer in c?

1080


What are compound statements?

1175


How do you sort filenames in a directory?

1177


What is the process of writing the null pointer?

1028


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

1118


What is the value of h?

1041


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

1055


How is a pointer variable declared?

1092


explain what is fifo?

1074


Are there constructors in c?

1010


What is the method to save data in stack data structure type?

1087


What is static memory allocation? Explain

1098


What is action and transformation in spark?

1164