Advertisement
gihanchanaka

Untitled

May 9th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. /*Problem 12 GROUP 3*/
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5.  
  6.  
  7. int printRev(char* ar){
  8.     if(*ar){
  9.         printRev(ar+1);
  10.         printf("%c",*ar);
  11.     }
  12.     return 0;
  13. }
  14.  
  15. int main(){
  16.     printRev("Hey!");
  17.     printf("\n");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement