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 / phani
No its invalid.A variable declared as static cannot be
changed though it is a global variable.
| Is This Answer Correct ? | 20 Yes | 3 No |
Answer / anil
variable/function defined static make the scope limited to
only the file in which it is defined and cannot be accessed
outside the file. Hence it is invalid
| Is This Answer Correct ? | 6 Yes | 0 No |
Write a C program to fill a rectangle using window scrolling
What are advantages and disadvantages of recursive calling ?
12 Answers College School Exams Tests, Evolving Systems, HP, Jyoti Ltd, Sage, Wipro,
any string of bits of length 'n' represents a unique non- negative integer between.............?
What is a floating point in c?
Where are local variables stored in c?
What is the real time usage volatile?
What is echo in c programming?
what is the use of #pragma pack, wer it is used?
Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June
What does malloc () calloc () realloc () free () do?
Why functions are used in c?
What is a char in c?