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;
}
What is #include cstdlib in c++?
What is c++ & why it is used?
What is buffer and example?
What is iterator c++?
why we cant create array of refrences
What are the characteristics of friend functions?
What are the benefits of pointers?
How to avoid a class from instantiation?
What is scope of a variable? (LOLZ)
How did c++ get its name?
Under what conditions is multiple inheritance not recommended?
what are the events occur in intr activated on interrupt vector table