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

Why do we need arrays in c?

1213


Differentiate abs() function from fabs() function.

1071


What do you mean by a local block?

1128


How to implement a packet in C

2932


What does %d do in c?

1010


What’s the special use of UNIONS?

1205


How many levels of pointers have?

1098


What is an identifier?

1087


Can the size of an array be declared at runtime?

1144


How many levels of indirection in pointers can you have in a single declaration?

1143


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1309


How can I write a function that takes a format string and a variable number of arguments?

1099


What is type qualifiers?

1190


What is a static variable in c?

1167


What is array of pointers to string?

1157