Can static member variables be private?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Is there any difference between dlearations int* x and int *x? If so tell me the difference?

16 Answers   Lason,


Why would you make a destructor virtual?

3 Answers   Lehman Brothers,


what is C++ objects?

0 Answers  


What is static in c++?

0 Answers  


What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl;

4 Answers   Lehman Brothers,


Explain the concept of friend function in c++?

0 Answers  


Is c++ still in demand?

0 Answers  


What is the difference between static link library and dynamic link library?

7 Answers   Tech Mahindra,


this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }

1 Answers  


string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring

1 Answers   Quark,


Why was c++ created?

0 Answers  


What are special characters c++?

0 Answers  


Categories