Write a program to swap 2 chars without using a third
varable?
char *s = "A";
char *p = "B";
Answer Posted / s.divya
void swap(A,B)
{
A=*p;
B=*s;
getch();
}
| Is This Answer Correct ? | 1 Yes | 18 No |
Post New Answer View All Answers
Describe the advantages of operator overloading?
Can comments be longer than one line?
What is difference between c++ 11 and c++ 14?
What is a singleton class c++?
Define 'std'.
How do c++ struct differs from the c++ class?
What is difference between rand () and srand ()?
What is an inline function in c++?
Do you know what is overriding?
What is a container class? What are the types of container classes in c++?
What are structures and unions?
How much do c++ programmers make?
What is a dynamic binding in c++?
What is flag in computer?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?