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
#include
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is ambiguity in inheritance?
Why do we use polymorphism in oops?
What are properties in oop?
What is the purpose of enum?
What is methods in oop?
What is the purpose of polymorphism?
Why interface is used?
What causes polymorphism?
What is oops concept with example?
What are the 5 oop principles?
Is data hiding and abstraction same?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is coupling in oop?