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 / adarsh gupta

Function declaration -
*Requires semicolon,
*Contains actual parameters,
*Tells about the type of value returned by function,
*This unit can't be invoked from other parts of program.

Function definition-
*Don't require semi coloun,
*Contans the main part(main ligic) of the program,
*Can be invoked from other parts of program,
*Uses formal parameters.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation with example?

1024


What is advantage of inheritance?

1128


What is balance factor?

1018


What is the main feature of oop?

1098


What is polymorphism and why is it important?

982


What does I oop mean?

1021


is there any choice in opting subjects like 4 out of 7

2131


What is oops and its features?

1025


What is constructor overloading in oop?

1078


What are the 4 pillars of oop?

1090


can inline function declare in private part of class?

4303


Advantage and disadvantage of routing in telecom sector

1249


What are the advantages of polymorphism?

976


How to use CMutex, CSemaphore in VC++ MFC

4737


What is the real time example of encapsulation?

1007