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.
Calculate sum between two numbers using for-, while-, and do-while loops
C++ instantiation
error_check
Dequeue Using STL List
Template
Fast sine to fill array (sin/cos pair)
sharedptr emptiness
#32
test
get_number_of_threads, windows
Please log in to post a comment.