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

Write syntax to define friend functions in C++.

599


Why c++ is better than c language?

557


How do you sort a sort function in c++ to sort in descending order?

549


What does the linker do?

586


What is c++ course?

574






What are the general quetions are in DEna bank manager IT/System interviews?

1531


Explain selection sorting. Also write an example.

577


What is the purpose of template?

605


What sorting algorithm does c++ use?

594


Explain the term memory alignment?

672


Can we use this pointer inside static member function?

621


Using a smart pointer can we iterate through a container?

554


What is the use of 'using' declaration in c++?

620


What does scope resolution operator do?

590


What is a pointer how and when is it used?

570