What is the difference between declaration and definition?
Answer Posted / durga devi.s
variable must be declared and defined before used in the program
variable declaration:
1. tells the compiler what is the name of the variable.
2. specifies what type of data values the variable can hold.
variable definition
1. reserves the memory for the declared variable and store
some value is called garbage value.
-> variable declaration and variable definition done at the
same time.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is object in oop?
Is this job good for future? can do this job post grduate student?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is object and class in oops?
What do you mean by variable?
What is cohesion in oop?
What are the advantages of polymorphism?
Which language is pure oop?
Why oops is important?
What is the types of inheritance?
What is encapsulation with example?
Templates mean
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).
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is object in oop with example?