C++ Programming
05-05-2010, 02:20 PM
Hello Sir
What is the main difference of static variable and Global Variable?
My Suggestion is :
Static variable accessing only through out the class and accessing need for scope resolution operator
Global variable accessing through out the program and accessing the class object.
Sir, My statements are correct or not
http://www.barakasoft.com/script/Forums/Images/smiley_squeamish.gif Failure is Success If we learn from it!!http://www.barakasoft.com/script/Forums/Images/smiley_squeamish.gif
What is the main difference of static variable and Global Variable?
My Suggestion is :
Static variable accessing only through out the class and accessing need for scope resolution operator
Global variable accessing through out the program and accessing the class object.
Sir, My statements are correct or not
http://www.barakasoft.com/script/Forums/Images/smiley_squeamish.gif Failure is Success If we learn from it!!http://www.barakasoft.com/script/Forums/Images/smiley_squeamish.gif