4 /* print contents of array */
5 void print_array(char s
[])
8 for(i
= 0; i
< strlen(s
); i
++)
13 /* reverse contents of array in place */
14 void rev_array(char s
[])
17 for(i
= 0, j
= strlen(s
)-1; i
< j
; i
++, j
--)
25 /* helper function - performs the recursion */
26 int rec_rev(char s
[], int i
, int j
)
44 /* reverse contents of array recursively in place */
45 void rev_array_rec(char s
[])
55 char s
[10] = { "Reverse Me" };