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 / dipti
No its in valid as a static variable cannot be declared as extern.
The whole and entire purpose of static is to declare that a variable is private to the source file that it is declared in.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what do you mean by inline function in C?
What are the types of i/o functions?
Describe wild pointers in c?
Differentiate between ordinary variable and pointer in c.
What is define directive?
What is #include cctype?
Write a program to swap two numbers without using third variable?
What is the difference between mpi and openmp?
What is FIFO?
What is header file definition?
What is c mainly used for?
What is pragma c?
What is a macro, and explain how do you use it?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
can anyone please tell about the nested interrupts?