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 VOID?
Explain working of printf?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Define the process of error-handling in case of constructor failure?
What is the difference between mutex and binary semaphore?
How does the copy constructor differ from the assignment operator (=)?
What is singleton pattern in c++?
What is an object in c++?
When is a template better solution than a base class??
Describe protected access specifiers?
What is long in c++?
What is the difference between method overloading and method overriding in c++?