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
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Is exit(status) truly equivalent to returning the same status from main?
hi, which software companys will take,if d candidate's % is jst 55%?
What is the difference between abs() and fabs() functions?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Which is better between malloc and calloc?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What is a stream?
Explain the difference between strcpy() and memcpy() function?
How can I direct output to the printer?
Why is c still so popular?
what is uses of .net
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is the difference between strcpy() and memcpy() function in c programming?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .