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

application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

1069


Explain how do you search data in a data file using random access method?

1136


Why static is used in c?

1096


What are the modifiers available in c programming language?

1224


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1237


What is restrict keyword in c?

1116


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1071


Why isn't any of this standardized in c? Any real program has to do some of these things.

1218


What is 2 d array in c?

1027


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1171


What is function prototype in c with example?

1093


What is clrscr ()?

1111


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

1004


Differentiate between a for loop and a while loop? What are it uses?

1189


How do you override a defined macro?

1273