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


Please Help Members By Posting Answers For Below Questions

Explain differences between alloc() and free()?

784


What are structures and unions?

775


Is c++ a good first language to learn?

756


Explain the virtual inheritance in c++.

800


Can I learn c++ as my first language?

843


What is function prototyping? What are its advantages?

810


What is ios in c++?

898


What is rvalue?

887


What are friend functions in C++?

811


What is the difference between method overloading and method overriding in c++?

775


When should I use unitbuf flag?

784


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

747


What is the difference between while and do while loop?

816


What is setfill c++?

886


How can you quickly find the number of elements stored in a static array?

840