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
Declare a class vehicle and make it an abstract data type.
what are Access specifiers in C++ class? What are the types?
Explain the concept of dynamic allocation of memory?
How to tokenize a string in c++?
Explain how to initialize a const member data.
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
Where can I run c++ program?
Explain "const" reference arguments in function?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
What is binary search in c++?
What is a far pointer? where we use it?
How much do coding jobs pay?
Comment on assignment operator in c++.
What does count ++ do in c++?