how to swap two strings without using any third variable ?
Answer Posted / ashutosh
say a = 10 and b = 20;
b = a + b;// b= 30
a = b - a;// a= 20
b = b - a;// b= 10
so now a = 20 b= 10
| Is This Answer Correct ? | 27 Yes | 16 No |
Post New Answer View All Answers
Can you Mention some Application of C/C++?
Can we run c program in turbo c++?
How do you remove an element from a set in c++?
What is data type in c++?
What are proxy objects in c++?
What is setbase c++?
Explain the difference between new() and malloc() in c++?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
Is c++ a good beginners programming language?
What happens when you make call 'delete this;'?
Explain linear search.
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
How do you add an element to a set in c++?
write a programme to get a character and thier ASCII value