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
How many keywords (reserve words) are in c?
explain what is a newline escape sequence?
What are the basic data types associated with c?
When should the volatile modifier be used?
What is the process to create increment and decrement stamen in c?
What is a void pointer? When is a void pointer used?
What is the full form of getch?
what is uses of .net
praagnovation
What language is lisp written in?
What are linked lists in c?
Do you know what are the properties of union in c?
can we change the default calling convention in c if yes than how.........?
Is it acceptable to declare/define a variable in a c header?
What is c basic?