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
When should we use pointers in a c program?
What is queue in c?
What is the process to create increment and decrement stamen in c?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What Is The Difference Between Null And Void Pointer?
Explain the difference between strcpy() and memcpy() function?
Why clrscr is used after variable declaration?
What does stand for?
What is the use of sizeof?
What are the primitive data types in c?
What are reserved words with a programming language?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Explain the difference between malloc() and calloc() function?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Write a program which returns the first non repetitive character in the string?