What is the difference between declaration and definition?
Answer Posted / amiya
defination=(declration+space reservation)
int a; -------------Declaration
a=20; ------------- Defination
For Function
int amiya(int a,int b); ---------------Declaration
int a=amiya(5,10) ---------------Function call
int amiya(int a,int b) Function Defination Logic is here
{
int c=a+b;
return(c);
}
| Is This Answer Correct ? | 24 Yes | 33 No |
Post New Answer View All Answers
What is class and object with example?
How do you explain polymorphism?
What is this pointer in oop?
What is difference between polymorphism and inheritance?
How do you answer polymorphism?
Why do we use class?
What is object in oops?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is destructor example?
Why is oop better than procedural?
How to improve object oriented design skills?
What does it mean when someone says I oop?
What is polymorphism explain?
What is overloading and its types?