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
How do you define a class in c++?
What are the important differences between c++ and java?
What is c++ & why it is used?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
What is the difference between an array and a list?
What is the difference between interpreters and compilers?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
What do you mean by friend class & friend function in c++?
In a function declaration, what does extern mean?
which operator is used for performing an exponential operation a) > b) ^ c) none
What is different in C++, compare with unix?
Write my own zero-argument manipulator that should work same as hex?
Explain abstraction.
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
How are pointers type-cast?