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;
}
Do you know about C++ 11 standard?
0 Answers Agilent, ZS Associates,
What are the new features that iso/ansi c++ has added to original c++ specifications?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
how can u create a doubly linked list with out using pointers?
How much is size of struct having 1 char & 1 integer?
"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55"
9 Answers College School Exams Tests, HCL,
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
Why we use #include conio h in c++?
if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.
what is the use of void main() in C++ language?
They will ask u question about single linked list?. Write Code for to insert delete node.
Difference between a copy constructor and an assignment operator.