simple c++ program for "abcde123ba" convert "ab321edcba"
with out using string
Answer Posted / pramod
void mystrrev(char* str)
{
char ch;
int last=strlen(str)-1;
for(int i=0;i<last;i++,last--)
{
ch=str[i];
str[i]=str[last];
str[last]=ch;
}
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Define a nested class. Explain how it can be useful.
What is the best ide for c++?
What are the rules about using an underscore in a c++ identifier?
Is it possible for a member function to delete the pointer, named this?
What is implicit conversion/coercion in c++?
What is format for defining a structure?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Explain overriding.
What are the two types of polymorphism?
What do you mean by public protected and private in c++?
How do you define a class in c++?
What is binary search in c++?
What is the average salary of a c++ programmer?
Do you need a main function in c++?
What is command line arguments in C++? What are its uses? Where we have to use this?