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 / 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 |
Post New Answer View All Answers
Why do we use null pointer?
Explain what is the benefit of using const for declaring constants?
Write a program for finding factorial of a number.
What are the different properties of variable number of arguments?
What is the difference between near, far and huge pointers?
What is the difference between struct and typedef struct in c?
What is meant by int main ()?
How do you initialize pointer variables?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is else if ladder?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is define c?
How to compare array with pointer in c?
Who invented bcpl language?
Define VARIABLE?