C++ Programming and Technical Programming Variables

Which one of the following is true about the static keyword :-
[1] variable declared as static is shared by all
the objects of the class.
[2] variable declared as static is not shared
by all the objects of the class.
[3] It can't be used as data member of class.
[4] None
.

Read Solution (Total 4)

C++ Other Question

Which one of the following is the correct option showing the declaration(s) of a pointer to constant integer?

[1] const int* a;
[2] int* const a;
[3] int const* a;
[4] 1 and 3 both
[5] 1 and 2 both
[6] 2 and 3 both
[7] None of the above
program to code electric bill where first 100 unit would cost 50 rupee and next 200 would cost 500 an over 300 would cost 5000 rupee