Difference between static global and global?

Answer Posted / mukesh

global variable is accessed in all file by use extern keyword.while static global only visible in file in which it is declared.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does a derived class inherit or doesn't inherit?

618


What is virtual destructor? What is its use?

578


What sorting algorithm does c++ use?

598


What are the effects after calling the delete this operator ?

557


What is the precedence when there is a global variable and a local variable in the program with the same name?

634






Which one is a preferred language C or C++? Why?

618


What is static in c++?

593


What is pure virtual function?

631


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

720


Explain public, protected, private in c++?

565


What are the advantages of early binding?

608


Is c++ an oop?

590


What return value must conversion operators have in their declaration?

614


When do we run a shell in the unix system? How will you tell which shell you are running?

556


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

835