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 and definition?

Answer Posted / durga devi sathi

Declaration of a variable means name the variable and tells
compiler that this has been present elsewhere in the program
Definition means that allocate or reserve some space and
store the value in that variable.
the variables like auto and registers, the declaration and
definition done at the same time because they are named the
variable and allocate the memory at the same time.
Ex- int a;//declaration and definition
extern int a;//only declaration
once the variable is defined it is ready to hold the data
value needed by the program

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is polymorphism achieved?

1109


What is destructor example?

1110


What is encapsulation oop?

1102


What does and I oop mean in text?

1304


Can static class have constructor?

1083


class type to basic type conversion

2464


Which type does string inherit from?

1152


What are main features of oop?

1178


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2675


Why it is called runtime polymorphism?

1197


What is the difference between a constructor and a destructor?

1338


Is data hiding and abstraction same?

1102


What is the difference between procedural programming and oops?

1198


What is destructor oops?

1149


What are the three parts of a simple empty class?

2095