WAP string reverse and ? BCA-2nd semester.


 WAP String Reverse:-

#include<studio.h>

#include<conio.h>

 void main ()

{

char a[100];

printf("enter a string\ n");

get(a);

strrev(a);

printf("Reverse string%s\n",a);

 getch();

}

Output of string reverse:-

Enter a string

ABC

Reverse string= CBA

No comments:

Post a Comment

If you have any doubts, Please lets me know and Please Follow our Website