What is the difference between static global and global ?

Answers were Sorted based on User's Feedback



What is the difference between static global and global ?..

Answer / 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

What is the difference between static global and global ?..

Answer / shakti singh khinchi

Scope of static variable is limited to different function
calls for a file, whereas global variable exists in multiple
files.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C++ General Interview Questions

How do you save a c++ program?

0 Answers  


What is virtual methods?

0 Answers  


What is the output of printf("%d")?

58 Answers   CTS, HCL, Infosys, TCS, Winit, Wipro,


Can we use struct in c++?

0 Answers  


What is stl containers in c++?

0 Answers  






Please explain the reference variable in c++?

0 Answers  


State the difference between pre and post increment/decrement operations.

0 Answers  


What are abstract data types in c++?

0 Answers  


State two differences between C and C++.

0 Answers   Hexaware,


Explain differences between new() and delete()?

0 Answers  


What does override mean in c++?

0 Answers  


Define virtual constructor.

0 Answers  


Categories