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 difference between abstraction and encapsulation?

1132


What are different oops concepts?

1113


What is the difference between encapsulation and polymorphism?

1155


What is destructor give example?

1117


Why do we use polymorphism in oops?

1106


What are the 3 pillars of oop?

1245


What is ambiguity in inheritance?

1171


What is the full form of oops?

1244


What is meant by oops concept?

1110


What is a function in oop?

1136


Why we use classes in oop?

1097


What is debug class?what is trace class? What differences are between them? With examples.

2260


What is the point of oop?

1260


What is polymorphism in oop example?

1070


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

2204