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;
}
How can we check whether the contents of two structure variables are same or not?
List down the guideline that should be followed while using friend function.
Explain the uses oof nested class?
What is virtual base class?
What is an adaptor class or wrapper class in c++?
What is an incomplete type in c++?
Can turbo c++ run c program?
Why do C++ compilers need name mangling?
What are the difference between reference variables and pointers in C++?
Is there a new/delete equivalent of realloc?
What it is and how it might be called (2 methods).
What are all predefined data types in c++?