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
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Explain how do you search data in a data file using random access method?
Why static is used in c?
What are the modifiers available in c programming language?
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?
What is restrict keyword in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is 2 d array in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is function prototype in c with example?
What is clrscr ()?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Differentiate between a for loop and a while loop? What are it uses?
How do you override a defined macro?