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
What is encapsulation with example?
What is advantage of inheritance?
What is balance factor?
What is the main feature of oop?
What is polymorphism and why is it important?
What does I oop mean?
is there any choice in opting subjects like 4 out of 7
What is oops and its features?
What is constructor overloading in oop?
What are the 4 pillars of oop?
can inline function declare in private part of class?
Advantage and disadvantage of routing in telecom sector
What are the advantages of polymorphism?
How to use CMutex, CSemaphore in VC++ MFC
What is the real time example of encapsulation?