Run Code
|
API
|
Code Wall
|
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
Template
Copy_and_base
GetFinalPathNameByHandle Behaviour
const_pointer_cast
hgh
assaa
algorithm_1
Runner-mt
bad_cast
Preserving strict aliasing Union example