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 |
What is the purpose of scanf() and printf() functions?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
how to find the sizof of any datatype using bit manipulations
how to find the given number is prime or not?
What is the size of structure pointer in c?
Write a C program to count the number of email on text
Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?
a c code by using memory allocation for add ,multiply of sprase matrixes
Can you write a programmer for FACTORIAL using recursion?
How do I round numbers?
write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.
How do you define a function?