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
What is the scope of an external variable in c?
What is the use of function overloading in C?
Is it possible to pass an entire structure to functions?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What are the complete rules for header file searching?
Explain what math functions are available for integers? For floating point?
What are the different types of errors?
What is a method in c?
Write a code to remove duplicates in a string.
What is #include called?
what is the structure pointer?
Why do we need volatile in c?
How do you print an address?
What language is windows 1.0 written?
Is null valid for pointers to functions?