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...

in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?

Answer Posted / dipti

No its in valid as a static variable cannot be declared as extern.
The whole and entire purpose of static is to declare that a variable is private to the source file that it is declared in.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any data type in c with variable size?

1144


Can variables be declared anywhere in c?

1147


Can i use “int” data type to store the value 32768? Why?

1230


Explain how do you use a pointer to a function?

1152


Is javascript based on c?

1112


Explain how do you view the path?

1217


State the difference between x3 and x[3].

1161


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1752


Explain about C function prototype?

1139


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

1099


What is cohesion and coupling in c?

1095


What are the preprocessor categories?

1112


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1181


how to find binary of number?

4532


Why string is used in c?

1047