Write a program to swap 2 chars without using a third
varable?
char *s = "A";
char *p = "B";
Answer Posted / answer and question
k=*s;
*s=*p;
*p=k;
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
How do you traverse a btree in backward in-order?
What is the type of this pointer in c++?
What is format for defining a structure?
Define token in c++.
What is c++ used for in games?
What is the v-ptr?
How can you quickly find the number of elements stored in a static array?
What is the meaning of c++?
Is java the same as c++?
What is the size of integer variable?
What is the difference between the functions rand(), random(), srand() and randomize()?
Explain virtual class and friend class.
What is the difference between #define debug 0 and #undef debug?
What are arrays c++?