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 / guest
yes
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What is a lvalue
How can I handle floating-point exceptions gracefully?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What are the general description for loop statement and available loop types in c?
What is difference between structure and union with example?
What kind of structure is a house?
How was c created?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Do you know the difference between exit() and _exit() function in c?
What are the application of void data type in c?
What is return type in c?
What is #include stdio h and #include conio h?
What does the && operator do in a program code?
Describe static function with its usage?