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 / krishna chowdary garapati

Declaration means it exits but it has no meaning. But where
as definition means it has a meaning. Without decalration
there is no definition. Why means without existing how can
we use.
Some situations we do both in a single statement like,
int i = 10;
here i is declared and definie with the value 10;
But some languages give some value to the variable without
defining like
class DiffsDemo {
int i;
}

DiffsDemo demo = new DiffsDemo();
print: demo.i;
output: 0;

This will happen because some default values are assigned
to that types. Internally at run time they will define.

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the example of polymorphism?

1022


What is the importance of oop?

1038


What is polymorphism and its types?

1006


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4079


to find out the minimum of two integer number of two different classes using friend function

2074


What is variable example?

978


Why it is called runtime polymorphism?

1045


How to call a non virtual function in the derived class by using base class pointer

6419


How do you define a class in oop?

1057


Which is not an object oriented programming language?

934


What are the three parts of a simple empty class?

1977


What does sksksk mean in text slang?

2053


What is difference between oop and pop?

1102


What is persistence in oop?

1094


What is coupling in oops?

1065