Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.80K
1 Posted Topic
Re: string reverse
[CODE]#include<iostream> #include<conio.h> using namespace std; #include<string> int main() { /string name="abcdefgh"; char *ptr; ptr=&name[0]; while(*ptr !='\0') { ptr++; } while(ptr!=&name[0]) { cout<<*(ptr-1); ptr--; } getch(); } [/CODE]
The End.
Kaviarasan.M