PPS Practical 40
- Aim: Write a program to reverse string.
- Code:
//For turbo C++ remove below comments #include <stdio.h> //#include<conio.h> #include<string.h> void main() { char s[99]; int i; //clrscr(); printf("Enter string : "); gets(s); printf("reversed string : %s",strrev(s)); // getch(); }
- Output:
Comments
Post a Comment