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 ,defenetion and
initialization of a variable?

Answer Posted / shabeer v c

A good example to illustrate this Question ges like this:

Whenever we apply for a job the company declares that we
have been selected. Similarly we declare a variable like

int emp;
(here emp behaves as an employee).

Then he will be assigned with a initial salary which
will be incremented in course of time period or on
experience basis.
Similarly the variable int is assigned a initial
value.
i.e int emp=20;
(value can be changed in between program)

The employee is now identified by his post, which can
define his status in the company.
Same way the variable is also defined in the
program.
ie. int emp;

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why C language is a procedural language?

998


How is pointer initialized in c?

1000


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

2076


How many bytes is a struct in c?

1134


What is the use of pragma in embedded c?

1030


What is null in c?

1044


What is the use of extern in c?

1077


What are the benefits of c language?

1143


How can I change their mode to binary?

1086


Why do we use return in c?

967


simple program of graphics and their output display

1967


What is openmp in c?

988


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1246


Is it better to use malloc() or calloc()?

1091


What is c method?

969