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


Please Help Members By Posting Answers For Below Questions

the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

554


What is a lvalue

653


How can I handle floating-point exceptions gracefully?

621


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

573


What are the general description for loop statement and available loop types in c?

678






What is difference between structure and union with example?

586


What kind of structure is a house?

546


How was c created?

581


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); }

908


Do you know the difference between exit() and _exit() function in c?

603


What are the application of void data type in c?

685


What is return type in c?

633


What is #include stdio h and #include conio h?

591


What does the && operator do in a program code?

686


Describe static function with its usage?

602