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 / dipti
No its in valid as a static variable cannot be declared as extern.
The whole and entire purpose of static is to declare that a variable is private to the source file that it is declared in.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do we declare variables in c?
What is the heap?
Which header file is used for clrscr?
What is the general form of #line preprocessor?
Where define directive used?
Explain the properties of union. What is the size of a union variable
How to write a multi-statement macro?
Is c easier than java?
Do you know pointer in c?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What is the size of array float a(10)?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
How will you delete a node in DLL?