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

variable/function defined static make the scope limited to
only the file in which it is defined and cannot be accessed
outside the file. Hence it is invalid

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of an external variable in c?

993


What is the use of function overloading in C?

1108


Is it possible to pass an entire structure to functions?

951


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1129


What are the complete rules for header file searching?

1041


Explain what math functions are available for integers? For floating point?

1069


What are the different types of errors?

1080


What is a method in c?

1075


Write a code to remove duplicates in a string.

988


What is #include called?

1004


what is the structure pointer?

2083


Why do we need volatile in c?

1125


How do you print an address?

1218


What language is windows 1.0 written?

1000


Is null valid for pointers to functions?

1118