Difference between static global and global?

Answer Posted / rakesh

Static global has file scope and it can't be accessed
outside of the file.
while global has program scope and can be accessed
outside of file in which it has been defined using extern
keyword.

Is This Answer Correct ?    139 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is endl?

629


What is the best c++ compiler for windows 10?

576


What is the difference between map and hashmap in c++?

553


Which is not a valid keyword a) public b) protected c) guarded

738


What is the hardest coding language to learn?

598






Are vectors passed by reference c++?

513


What are dynamic type checking?

612


Can we overload operator in c++?

545


What is a constructor and how is it called?

591


How do you establish a has-a relationship?

607


What is the most common mistake on c++ and oo projects?

515


What is a constant? Explain with an example.

553


Why we use #include iostream in c++?

574


What are the different types of comments allowed in c++?

573


Why is c++ so fast?

529