Difference between static global and global?

Answer Posted / derick

Chitra, "static global is fixed.but global variables are
changed." what does this mean?

Please do not answer like this if you are not sure.

What Rakesh said is true except that Static global
variable's scope is limited to its block.

Is This Answer Correct ?    21 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of polymorphism in c++?

583


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

629


Why cstdlib is used in c++?

576


How do I use arrays in c++?

580


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

576






Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

554


Explain about Virtual Function in C++?

603


Explain deep copy and a shallow copy?

598


Define a constructor - what it is and how it might be called (2 methods)?

602


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

3198


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

922


What does it mean to declare a member variable as static?

606


Which operator cannot be overloaded c++?

580


Define private, protected and public access control.

600


What is constructor and destructor in c++?

611