What is the difference between static global and global ?

Answer Posted / leossk

Scope of the static variable is limited to that file, while
global is for all the files in that project space.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is vector string in c++?

570


What is a pointer with example?

657


How a modifier is similar to mutator?

626


What is the difference between a definition and a declaration?

572


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

605






Can you use the function fprintf() to display the output on the screen?

656


What does #define mean in c++?

603


How does work in c++?

591


What are the steps in the development cycle?

607


What are maps in c++?

496


What is dynamic and static typing?

665


You run a shell on unix system. How would you tell which shell are you running?

651


How is static data member similar to a global variable?

576


What is data types c++?

539


What does std mean in c++?

577