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 / friend nitk

The declaration tells the compiler that at some later point
we plan to present the definition of this declaration.
E.g.: void stars () //function declaration
The definition contains the actual implementation.
E.g.: void stars () // declarator
{
for(int j=10; j > =0; j--) //function body
cout << *;
cout << endl; }

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is pseudocode used?

1167


Why is object oriented programming so hard?

1134


Can abstract class have normal methods?

1107


Which method cannot be overridden?

1171


What are the 4 pillars of oop?

1204


Can we create object of abstract class?

1148


What is the difference between abstraction and polymorphism?

1155


Why do we use encapsulation in oops?

1084


What is encapsulation in simple terms?

1098


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

2260


What is difference between pop and oop?

1235


What is class and object with example?

1220


How does polymorphism work?

1186


What is encapsulation in ict?

1118


What is advantage of inheritance?

1225