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
What is a method in c?
What are derived data types in c?
Explain do array subscripts always start with zero?
What does %2f mean in c?
What is c definition?
Explain what is wrong in this statement?
Is a house a shell structure?
What is static volatile in c?
How do you generate random numbers in C?
Explain what is the advantage of a random access file?
What is array in c with example?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
Explain the difference between strcpy() and memcpy() function?
Can the size of an array be declared at runtime?
Explain the use of fflush() function?