Explain what is the difference between declaring a variable and defining a variable?

Answer Posted / ss

Declaring variable means
Eg- int a;
Defining variable means we are giving some integer value to that a variable
Eg- a=100;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2410


Explain what is the most efficient way to store flag values?

700


Explain what are run-time errors?

610


What are the different types of linkage exist in c?

613


Can a file other than a .h file be included with #include?

686






What is meant by errors and debugging?

649


Which is better oop or procedural?

634


Under what circumstances does a name clash occur?

692


Describe the steps to insert data into a singly linked list.

622


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

654


difference between Low, Middle, High Level languages in c ?

1635


What is scope and lifetime of a variable in c?

578


Explain the difference between #include "..." And #include <...> In c?

633


What is c++ used for today?

669


What’s the special use of UNIONS?

659