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 |
write a program to display & create a rational number
What is the difference between typeof(foo) and myFoo.GetType()?
yogesh patil in dell
char *p="name"; printf(p);
Write a small C program to determine whether a machine's type is little-endian or big-endian.
Explain spaghetti programming?
print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5
What is calloc in c?
What are structure members?
what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;
#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.