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 / vadivel t
No. it is not valid,
Bcos we can not initialise a variable with an extern key
word.ie.,
The statement extern int i = 100; is wrong.
| Is This Answer Correct ? | 14 Yes | 5 No |
Post New Answer View All Answers
How can I get the current date or time of day in a c program?
Lists the benefits of c programming language?
what is recursion in C
can any one provide me the notes of data structure for ignou cs-62 paper
What is c programming structure?
Where in memory are my variables stored?
What is time null in c?
number of times a digit is present in a number
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What header files do I need in order to define the standard library functions I use?
What is the difference between int main and void main in c?
What is call by value in c?
What is array of structure in c?
Explain what is the benefit of using const for declaring constants?
What is pointer and structure in c?