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 |
declare afunction pointer to int printf(char *)?
WHAT IS FLOAT?
What are the types of arrays in c?
In C language what is a 'dangling pointer'?
What is meant by preprocessor in c?
WHO WROTE C LANGUAGE?
what is use of malloc and calloc?
How many types of errors are there in c language? Explain
Why is c known as a mother language?
write a program wch produces its own source code aas its output?
What are identifiers in c?
What is extern variable in c with example?