simple c++ program for "abcde123ba" convert "ab321edcba"
with out using string
Answer Posted / sandeep
#include<iostream.h>
#include<string.h>
int main()
{
char a='abcde123ba';
strrev(a);
cout<<a;
getch();
return 0;
}
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
What is polymorphism in c++? Explain with an example?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What is c++ namespace?
How a pointer differs from a reference?
When can I use a forward declaration?
What are the uses of static class data?
What is the latest c++ version?
How is data hiding achieved in c++?
How new/delete differs from malloc()/free?
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
Explain how functions are classified in C++ ?
What is pure virtual function? Or what is abstract class?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is the use of turbo c++?
Why struct is used in c++?