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;
}
Can a list of string be stored within a two dimensional array?
What is the topic of the C++ FAQ list?
What is endl?
What is c++ vb?
Explain Text Manipulation Routines?
Difference between Abstraction and encapsulation in C++?
What is do..while loops structure?
What is the real purpose of class – to export data?
Do class method definitions?
How would you represent an error detected during constructor of an object?
give me some class & objects examples?
Difference between delete and delete[]?
5 Answers Infosys, TCS, Virtusa,