what is difference between static and non-static variables
Answer Posted / narender vadhava
static variables have their fix values within a program but
in case of non-static variables their values are changable
within the same program.
syntax of static variable:-
static int s;
while
non static variables declared only by using general basic
data type.
as:-
int s;
| Is This Answer Correct ? | 14 Yes | 12 No |
Post New Answer View All Answers
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
How do you flush a buffer in c++?
Is c++ low level?
Define the process of handling in case of destructor failure?
What is the best c++ book for beginners?
Differentiate between late binding and early binding. What are the advantages of early binding?
How can you differentiate between inheritance and implementation in c++?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)
Define a nested class. Explain how it can be useful.
What is ctime c++?
Discussion on error handling of C++ .
What is implicit pointer in c++?
Differentiate between a pointer and a reference with respect to c++.
How would you implement a substr() function that extracts a sub string from a given string?