Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
WAP in C to print the reverse of a string
//gcc 5.4.0 #include <stdio.h> int main(int argc,char*argv[]) { char s[100]="REXTESTER", r[100],count=0; int n, c, d,i; for(i=0;s[i]!='\0';i++) { count++; } n = count; for (c = n - 1, d = 0; c >= 0; c--, d++) r[d] = s[c]; r[d] = '\0'; printf("%s\n", r); return 0; }
run
|
edit
|
history
|
help
1
tickeParsing.c
22nd HW Switchv0.24
Assignment 8
switch_nota
Add c
ordenarcifrademenosamas
ECE 2574 1/23
sum of min and max
demo_strlen
Test2