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 / harshit

there is no practical such as declaration its in theory only
the only practical application is :

int a; //defination
a=10; //intialization

this is a normal thing we do,,,now

somemethod()
{
int a;//defination
}


main()
{
extern int a;//declaration
a=10//intialization
}

here we declare that there is a variable "a" somewhere
n this is the only use of declaration ...
to best of my knowledge...
plz suggest if someone kno better

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1449


about c language

1960


When a c file is executed there are many files that are automatically opened what are they files?

1036


What are the types of type specifiers?

982


is it possible to create your own header files?

1045


What is else if ladder?

964


How is a structure member accessed?

1059


What are the types of data types and explain?

1034


Why do we write return 0 in c?

1005


What is the explanation for the dangling pointer in c?

1062


What are pointers? Why are they used?

1112


How important is structure in life?

1028


How are Structure passing and returning implemented by the complier?

1105


Is exit(status) truly equivalent to returning the same status from main?

1007


How can I insert or delete a line (or record) in the middle of a file?

976