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 do you mean by c what are the main characteristics of c language?
How can I access an I o board directly?
What does emoji p mean?
What is variable declaration and definition in c?
What does. int *x[](); means ?
What is function prototype in c language?
Explain the use of bit fieild.
what is the difference between 123 and 0123 in c?
What is wrong with this statement? Myname = 'robin';
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
Can you mix old-style and new-style function syntax?
What is malloc and calloc?
What are # preprocessor operator in c?
How many levels of indirection in pointers can you have in a single declaration?
why we wont use '&' sing in aceesing the string using scanf