Explain data encapsulation?


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

Post New Answer

More C++ General Interview Questions

if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.

3 Answers  


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  


I need to find a specific string between two strings how do I do it?

1 Answers   Infosys,


What are the various storage classes in C++?

0 Answers   Fidelity,


What is using namespace std in c++?

0 Answers  






What are the advantages of c++? Explain

0 Answers  


What are files in c++?

0 Answers  


What does it mean to declare a member function as static?

0 Answers  


Why do we need pointers?

0 Answers  


Why do C++ compilers need name mangling?

3 Answers   Lucent,


What is copy constructor? Can we make copy constructor private in c++?

0 Answers  


What is binary search in c++?

0 Answers  


Categories