What is the difference between declaration and definition?
Answer Posted / sanjay
The definition is the one that actually allocates space,
and provides an initialization value, if any.
There can be many declarations, but there must be exactly
one definition. A definition tells the compiler to set
aside storage for the variable. A declaration makes the
variable known to parts of the program that may wish to use
it. A variable might be defined and declared in the same
statement
| Is This Answer Correct ? | 57 Yes | 5 No |
Post New Answer View All Answers
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Why is abstraction used?
What is overloading and its types?
How does polymorphism work?
what's the basic's in dot net
What is oops with example?
any one please tell me the purpose of operator overloading
How do you define a class in oop?
Can we create object of interface?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is abstraction oop?
How to hide the base class functionality in Inheritance?
write a program to find 2^n+1 ?
What is the advantage of oop over procedural language?
How is class defined?