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
What is the extension of c++?
What do you mean by ‘void’ return type?
What is a driver program?
What is low level language in simple words?
Explain selection sorting?
What is long in c++?
What is searching?
When does a name clash occur in c++?
Define anonymous class.
What is encapsulation in c++ with example?
Explain how a pointer to function can be declared in C++?
What causes a runtime error c++?
How many characters are recognized by ANSI C++?
What is flush c++?
Explain public, protected, private in c++?