in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?
Answers were Sorted based on User's Feedback
Answer / phani
No its invalid.A variable declared as static cannot be
changed though it is a global variable.
Is This Answer Correct ? | 20 Yes | 3 No |
Answer / 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 |
What are the types of arrays in c?
Compare array data type to pointer data type
Explain what is wrong with this program statement? Void = 10;
What is a pointer and how it is initialized?
What does a function declared as pascal do differently?
Explain how many levels deep can include files be nested?
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe
What is a string?
Is c a great language, or what?
What is difference between far and near pointers?
How do we declare variables in c?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()