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 does com provide language transparency?
What are mutator methods in c++?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
Write a c program for binary addition of two 8 bit numbers.
What are keywords in c++?
What does the linker do?
Is multimap sorted c++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What are the c++ access specifiers?
What do you mean by enumerated data type?
What are containers in c++?
What are enumerations?