Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
rstring
#include<stdio.h> #include<string.h> // Function to reverse a string void * reverse(char * str ) { int i, len ; // calculating length of the string len = strlen(str); for( i=len ; i>=0 ; i--) // *(str+i) is the character at the ith index // of the string printf( "%c", *(str+i)); } // Driver code int main( void ) { char a[] = "suleman khan" ; reverse(a); return(0); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
#21
default
amusing overload choice
c++ eval - double numbers v1.0
find vs at
Fibonacci stairs
Visual C++ template instantiation
5sdgts
Hello World
MSVC_example_fscanf_s_and_chars_wchars
Please log in to post a comment.