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 / 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 |
Post New Answer View All Answers
How do I convert a string to all upper or lower case?
How many identifiers are there in c?
what is ur strangth & weekness
Can we change the value of static variable in c?
What is the size of array float a(10)?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What is pointer to pointer in c with example?
what are non standard function in c
How many types of arrays are there in c?
what is the basis for selection of arrays or pointers as data structure in a program
What is wrong in this statement?
What are pragmas and what are they good for?
What is function and its example?
What header files do I need in order to define the standard library functions I use?
Is that possible to add pointers to each other?