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
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
List the difference between a "copy constructor" and a "assignment operator"?
Which programming language is best for getting job 2020?
while initialization of array why we use a[][2] why not a[2][]...?
What is realloc in c?
What is data type long in c?
How is a null pointer different from a dangling pointer?
how many errors in c explain deply
Explain high-order and low-order bytes.
Can we change the value of constant variable in c?
Why is void main used?
Can a variable be both static and volatile in c?
Are bit fields portable?
where are auto variables stored? What are the characteristics of an auto variable?
What are the advantages and disadvantages of c language?