edited by
3,163 views

3 Answers

1 1 vote

Option B is the correct answer . 

The value of the static variable persists until the end of the program. Internal static variables are variables that are declared inside the function. These static variables can be used to retain the values of the function calls. 

Syntax is : Static datatype variable_name; 

So, if one memory location is to be reserved for a class variable, the variable should be declared as static so that any no. of objects instantiated can use it.

Answer:
Position:
Show:

Related questions

4 4 votes
2 answers 2 answers
6.5k
6.5k views
ajit asked Sep 23, 2015
6,524 views
Which of the following is true with respect to Reference?A reference can never be NULLA reference needs an explicit dereferencing mechanismA reference can be reassigned a...
3 3 votes
3 3 answers
4.9k
4.9k views
ajit asked Sep 20, 2015
4,938 views
Which of the following is NOT represented in a subroutine's activation record frame for a stack-based programming language?Values of local variablesReturn addressHeap are...
6 6 votes
4 answers 4 answers
5.7k
5.7k views
go_editor asked Jun 10, 2016
5,681 views
Which of the following programming language(s) provides garbage collection automaticallyLispC++FortanC
3 3 votes
4 answers 4 answers
7.3k
7.3k views
jenny101 asked Jun 25, 2016
7,295 views
The following three 'C' language statements is equivalent to which single statement?y=y+1; z=x+y; x=x+1z = x + y + 2;z = (x++) + (++y);z = (x++) + (y++);z = (x++) + (++y)...