If the static variable is declared as global,
will it be same as extern?

Answer Posted / venkat

static :if i declare the static varible as global that
variable i can acces only with in the file (i.e i can't
access that variable from other file )


extern :if the varible i declared as extern than that extern
variable i can acces from other file also

Is This Answer Correct ?    29 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1414


What is far pointer in c?

814


how can f be used for both float and double arguments in printf? Are not they different types?

610


Is c a great language, or what?

605


What is a macro in c preprocessor?

632






What is the most efficient way to count the number of bits which are set in an integer?

594


write a program for the normal snake games find in most of the mobiles.

1787


What is an auto variable in c?

759


How can I find out if there are characters available for reading?

648


What is wild pointer in c with example?

578


What is a wrapper function in c?

591


What is LINKED LIST? How can you access the last element in a linked list?

633


Explain 'far' and 'near' pointers in c.

707


Differentiate between the expression “++a” and “a++”?

705


Explain what is wrong in this statement?

635