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 ambiguity in inheritance?
What are the 4 pillars of oop?
What does sksksk mean in text slang?
What is encapsulation c#?
What is abstraction encapsulation?
Why multiple inheritance is not allowed?
What is the main purpose of inheritance law?
How is class defined?
What is the real time example of encapsulation?
What is class and object in oops?
can we make game by using c
What is the significance of classes in oop?
Why is there no multiple inheritance?
How do you answer polymorphism?
#include