in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Can true be a variable name in c?
What is local and global variable in c?
Why is c faster?
In which header file is the null macro defined?
Explain function?
What is main return c?
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?
How can I find out how much memory is available?
how to reverse string "Hello World" by using pointers only. Without any temp var
The code is::::: if(condition) Printf("Hello"); Else Printf("World"); What will be the condition in if in such a way that both Hello and world are printed in a single attempt?????? Single Attempt in the sense... It must first print "Hello" and it Must go to else part and print "World"..... No loops, Recursion are allowed........................
14 Answers HOV Services, IBM, Potty,
where do we use volatile keyword?