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
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is a rooted hierarchy?
What is the use of :: operator in c++?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
What do you mean by late binding?
What is the benefit of encapsulation?
How did c++ get its name?
Is swift faster than c++?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
Explain virtual destructor?
What is c++ similar to?
Why is "using namespace std;" considered bad practice?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
why is c++ called oops? Explain