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

describe private access specifiers?

631


If a header file is included twice by mistake in the program, will it give any error?

545


Please explain the reference variable in c++?

611


What is the difference between global variables and static varables?

560


What is anonymous object in c++?

626






Why c++ is not a pure oop language?

549


what kind of projects are suitable for c and c++

614


What are shallow and deep copy?

590


Why do we use classes in c++?

568


Will the following program execute?

553


How is new() different from malloc()?

622


Why is c++ difficult?

596


What is virtual base class?

561


Define vptr.

588


What is prototype in c++ with example?

554