What is the difference between declaration and definition?

Answer Posted / roshan

During declaration we just specify the type and no memory
is allocated to the variable. But during the definition an
initial value is assigned and memory is allocated to the
variable.

Is This Answer Correct ?    186 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is oop useful?

603


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1793


What type of loop is a for loop?

684


What is ambiguity in inheritance?

625


can we make game by using c

3433






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.

6487


Why it is called runtime polymorphism?

577


What is protected in oop?

604


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2038


What are the components of marker interface?

605


Why is polymorphism needed?

605


class type to basic type conversion

1842


Which is better struts or spring?

624


What is the point of oop?

659


What is the difference between a constructor and a destructor?

617