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 using namespace std in cpp?
Why c++ is better than c language?
What is a class definition?
What is the difference between map and hashmap in c++?
In the derived class, which data member of the base class are visible?
Explain queue. How it can be implemented?
What is buffer and example?
Difference between struct and class in terms of access modifier.
What are the various access specifiers in c++?
Which software is used for c++ programming?
Show the declaration for a static member variable.
What is the insertion operator and what does it do?