Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: C  |  size: 0.27 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. int f(char * napis1, char *napis2){
  4.         int ile=0;
  5.         if(*napis1 =='\0'){
  6.                 return 0;
  7.         }
  8.                 if(*napis2=='\0'){
  9.                 return 1;
  10.        
  11.         }
  12.                         if(*napis1== *napis2){
  13.                         ile++;
  14.                         return f(napis1+1,napis2+1);
  15.         }
  16.         return f(napis1+1, napis2-ile);