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
List the special characteristics of constructor.
Is c++ a pure oop language?
Differentiate between an array and a list?
What is diamond problem in c++?
Ask to write virtual base class code?
Is c++ the hardest language?
What is a set in c++?
What is the most powerful coding language?
What do you mean by function and operator overloading in c++?
Do vectors start at 0 c++?
What does asterisk mean in c++?
Write a program which uses functions like strcmp(), strcpy()? etc
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
Does c++ support multilevel and multiple inheritances?
Is java made in c++?