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
What is using namespace std in c++?
Which is better turbo c++ or dev c++?
What is a driver program?
What are features of c++?
Is it possible to use a new for the reallocation of pointers ?
Can java be faster than c++?
Differentiate between a constructor and a destructor in c++.
Define namespace in c++?
Write a program which uses functions like strcmp(), strcpy()? etc
What does override mean in c++?
Explain the volatile and mutable keywords.
What is meant by const_cast?
How a modifier is similar to mutator?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Is there finally in c++?