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 / vadivel t

No. it is not valid,

Bcos we can not initialise a variable with an extern key
word.ie.,

The statement extern int i = 100; is wrong.

Is This Answer Correct ?    14 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I get the current date or time of day in a c program?

1166


Lists the benefits of c programming language?

1067


what is recursion in C

1019


can any one provide me the notes of data structure for ignou cs-62 paper

2118


What is c programming structure?

1111


Where in memory are my variables stored?

1113


What is time null in c?

1005


number of times a digit is present in a number

1988


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

946


What header files do I need in order to define the standard library functions I use?

998


What is the difference between int main and void main in c?

1093


What is call by value in c?

953


What is array of structure in c?

1098


Explain what is the benefit of using const for declaring constants?

967


What is pointer and structure in c?

1073