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 |
Explain the bubble sort algorithm.
Explain the properties of union. What is the size of a union variable
Are the expressions * ptr ++ and ++ * ptr same?
What is the best way to store flag values in a program?
What is the purpose of Scanf Print, getchar, putchar, function?
size maximum allocated by calloc()
what is the role you expect in software industry?
Write a program that receives as input a number omaadel-n-print, four digits.
Differentiate between ordinary variable and pointer in c.
whitch value return void main?
Why we write conio h in c?
Tell me about low level programming languages.