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 |
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
0 Answers Amdocs, Apps Associates,
write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,25,26,27};
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is the difference between fread and fwrite function?
Is it cc or c in a letter?
Why is the code below functioning. According to me it MUST NOT.
What is calloc malloc realloc in c?
What is time null in c?
List the different types of c tokens?
is assignment operator is arithmatic or not
Is c is a middle level language?
What is the full form of getch?