Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2320


What is polymorphism explain?

1255


What is an advantage of polymorphism?

1095


Why is polymorphism used?

1039


Where You Can Use Interface in your Project

1890


Can a destructor be called directly?

1076


What is interface in oop?

1126


What is the benefit of oop?

1054


What is abstraction and encapsulation?

1018


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

2151


What is the advantage of oop over procedural language?

1087


2. Give the different notations for the class.\

2161


what are the realtime excercises in C++?

2839


State what is encapsulation and friend function?

1264


What is meant by oops concept?

1042