- 1
#include <stdio.h> int main () { char s1[20]="java"; printf ("progming = %s",s1); printf ("\nprogming=%s",strrev(s1)); retur
#include <stdio.h> int main () { char s1[20]="java"; printf ("progming = %s",s1); printf ("\nprogming=%s",strrev(s1)); return 0; }
5 Réponses
+ 2
The program will not run on SL as strrev() is not a standard function.
In-fact I don't think C have any library function to reverse a string, so you have to do it manually.
0
Deep patel
What is your problem?
0
Tx friends
- 1
Please run my program
- 1
solve this problem by counting number of characters (length of string) , apply loop from last to fist character !