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 / anurag aggarwal

after declaring the header files declare the global
variables to be used that is the best way.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of c language?

1022


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

1361


write a program to generate address labels using structures?

4520


What will be the outcome of the following conditional statement if the value of variable s is 10?

1232


What is %s and %d in c?

973


What is adt in c programming?

1101


write a c program in such a way that if we enter the today date the output should be next day's date.

2137


Write a program to show the change in position of a cursor using c

997


how to find anagram without using string functions using only loops in c programming

3135


Where does the name "C" come from, anyway?

1076


Write a progarm to find the length of string using switch case?

2026


What is c mainly used for?

1000


Whats s or c mean?

950


What is auto keyword in c?

1161


What are predefined functions in c?

1022