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

During declaration we just specify the type and no memory
is allocated to the variable. But during the definition an
initial value is assigned and memory is allocated to the
variable.

or we can also say,

Declaration means just telling to complier about variable
or function but definition means actually allocating memory
for variable.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is this pointer in oop?

1000


write a program to find 2 power of a 5digit number with out using big int and exponent ?

2323


What is use of overloading?

1081


What is the example of polymorphism?

1024


What are the 4 main oop principles?

1162


Is data hiding and abstraction same?

968


Can bst contain duplicates?

1143


What is the difference between encapsulation and polymorphism?

1048


explain sub-type and sub class? atleast u have differ it into 4 points?

2256


What is protected in oop?

1010


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3409


How Do you Code Composition and Aggregation in C++ ?

25261


Describe these concepts: Polymorphism, Inheritance and Abstraction.

1139


What are benefits of oop?

1082


What do you mean by overloading?

1024