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
What are the differences between Structures and Arrays?
How can this be legal c?
What is the condition that is applied with ?: Operator?
What are valid signatures for the Main function?
What are identifiers c?
How can I change the size of the dynamically allocated array?
Compare array data type to pointer data type
When should I declare a function?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What is a program flowchart and how does it help in writing a program?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Are the expressions * ptr ++ and ++ * ptr same?
What is a scope resolution operator in c?
How many levels of indirection in pointers can you have in a single declaration?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above