List the advantages of inheritance.
No Answer is Posted For this Question
Be the First to Post Answer
What is one dimensional array in c++?
What is the best way to declare and define global variables?
What are the difference between reference variables and pointers in C++?
When does the c++ compiler create temporary variables?
What is recursion?
What is array in c++ example?
Describe the setting up of my member functions to avoid overriding by the derived class?
What are the two shift operators and what are their functions?
Write about a nested class and mention its use?
Is std :: string immutable?
What is the use of endl in c++?
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; }