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

No its invalid.A variable declared as static cannot be
changed though it is a global variable.

Is This Answer Correct ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss the function of conditional operator, size of operator and comma operator with examples.

1097


Who developed c language?

1038


Can a variable be both static and volatile in c?

973


Explain high-order bytes.

1061


Why is extern used in c?

1050


What are the ways to a null pointer can use in c programming language?

1075


Can a local variable be volatile in c?

937


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16589


Are there constructors in c?

970


If the size of int data type is two bytes, what is the range of signed int data type?

975


What is enumerated data type in c?

1030


Difference between Shallow copy and Deep copy?

1968


Which is the best website to learn c programming?

1031


What is structure padding and packing in c?

1004


What are variables and it what way is it different from constants?

1191