in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Why ordinary variable store only one value
What does a run-time "null pointer assignment" error mean?
What is difference between arrays and pointers?
char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)
find the minimum of three values inputted by the user
What is integer constants?
What are the differences between Structures and Arrays?
what is difference between ANSI structure and C99 Structure?
What does. int *x[](); means ?
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
What is difference between scanf and gets?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..