how to swap two strings without using any third variable ?
Answer Posted / doesntmatter
" PLEASE DON'T REFER ABOVE THREE SOLUTION BCOZ THEY ARE FOR
INTEGER NOT FOR STRING. "
lol
(c) string -> char * -> pointer -> integer.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of using a pointer?
Why is c++ a mid-level programming language?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
Explain what happens when a pointer is deleted twice?
Define copy constructor.
What is the difference between public, private, and protected access?
Can we define function inside main in c++?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
Explain queue. How it can be implemented?
Explain the difference between abstract class and interface in c++?
What is array in c++ example?
What is overloading unary operator?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What is the best c++ book?
What type of question are asked in GE code writing test based on c++ data structures and pointers?