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 / dipti
No its in valid as a static variable cannot be declared as extern.
The whole and entire purpose of static is to declare that a variable is private to the source file that it is declared in.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is unary operator?
What is the difference between memcpy and memmove?
What are loops c?
What is a good way to implement complex numbers in c?
What is console in c language?
Explain what is a const pointer?
hi send me sample aptitude papers of cts?
number of times a digit is present in a number
Why do some versions of toupper act strangely if given an upper-case letter?
Explain how many levels deep can include files be nested?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
How do I round numbers?
What is the value of c?
Can you please explain the scope of static variables?
Explain heap and queue.