what is difference between static and non-static variables
Answer Posted / sv
static variable retains its value like a global variable,
but visible with in the scope.
While non static variable will not be retained one it come
out of the scope or block. Again the visibility is local to
the block.
| Is This Answer Correct ? | 53 Yes | 8 No |
Post New Answer View All Answers
How one would use switch in a program?
What is polymorphism in c++? Explain with an example?
What are the unique features of C++.
Explain class invariant.
Write a program using display() function which takes two arguments.
If a function doesn’t return a value, how do you declare the function?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
What is singleton pattern in c++?
Write a program to concatenate two strings.
How can we read/write Structures from/to data files?
What do you mean by volatile and mutable keywords used in c++?
What is the best way to take screenshots of a window with c++ in windows?
What language is a dll written in?
What character terminates all character array strings a) b) . c) END
What information can an exception contain?