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
Explain what is the difference between far and near ?
Is fortran still used in 2018?
Explain what is the heap?
explain how do you use macro?
What is a pointer in c?
What is the easiest sorting method to use?
Describe explain how arrays can be passed to a user defined function
Why do we use header files in c?
What does c value mean?
What are predefined functions in c?
What is a lookup table in c?
can anyone please tell about the nested interrupts?
How are structure passing and returning implemented?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Is it possible to execute code even after the program exits the main() function?