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
Do you have any idea about the use of "auto" keyword?
What is %lu in c?
What is || operator and how does it function in a program?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Should a function contain a return statement if it does not return a value?
How can I sort a linked list?
Write a code to remove duplicates in a string.
Is null always equal to 0(zero)?
Explain how can I open a file so that other programs can update it at the same time?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What does do in c?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
How can I invoke another program or command and trap its output?
What does it mean when the linker says that _end is undefined?
Write a code of a general series where the next element is the sum of last k terms.