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
Discuss the function of conditional operator, size of operator and comma operator with examples.
Who developed c language?
Can a variable be both static and volatile in c?
Explain high-order bytes.
Why is extern used in c?
What are the ways to a null pointer can use in c programming language?
Can a local variable be volatile in c?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Are there constructors in c?
If the size of int data type is two bytes, what is the range of signed int data type?
What is enumerated data type in c?
Difference between Shallow copy and Deep copy?
Which is the best website to learn c programming?
What is structure padding and packing in c?
What are variables and it what way is it different from constants?