what is difference between static and non-static variables
Answer Posted / daxini
Static :
A static variable is defined for the class itself and exists independently of any object of that class.
non-static:
a non static variable is defined for object of the class thus it is bound to an instance of its class
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What are the stages in the development cycle?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
Which c++ operator cannot overload?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What is c++ similar to?
What is protected inheritance?
What is an operator in c++?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is function prototyping? What are its advantages?
Is c++ primer good for beginners?
What is the use of string in c++?
What are the advantages of using typedef in a program?
What are the types of array in c++?
what is C++ exceptional handling?