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's the best way to declare and define global variables?

Answer Posted / guest

The best arrangement is to place each definition in some
relevant .c file, with an external declaration in a header file.

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between near, far and huge pointers?

1093


What is meant by initialization and how we initialize a variable?

1046


What is substring in c?

1204


What is auto keyword in c?

1206


explain what is a newline escape sequence?

1087


What is union in c?

1115


Is c is a procedural language?

1090


What is wrong with this initialization?

1005


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

1161


what are bit fields? What is the use of bit fields in a structure declaration?

2122


What are the modifiers available in c programming language?

1218


difference between native and cross compilers

2125


Explain how do you convert strings to numbers in c?

1078


Why do we use & in c?

998


What is a global variable in c?

1003