Difference between static global and global?

Answer Posted / nischal bansal

Static global variable can be used only in the file, it is
declared whereas global variable can be used in other files
also. we have to include the file, in which we have
declared the variable

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use structure in c++?

578


Can we use clrscr in c++?

536


Which one is a preferred language C or C++? Why?

620


Differentiate between late binding and early binding. What are the advantages of early binding?

586


What is prototype for that c string function?

692






What are shallow and deep copy?

601


What is the difference between ++ count and count ++?

587


How do c++ struct differs from the c++ class?

594


How would you obtain segment and offset addresses from a far address of a memory location?

622


In a function declaration what does extern means?

600


What is constructor in C++?

632


What is a buffer c++?

586


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

640


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

613


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

592