Advertisement
gihanchanaka

Untitled

May 9th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. /*Problem 10 GROUP 3*/
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5.  
  6. int equalCharCount(char* s,char* ss){
  7.     if(! ((*s) * (*ss) * ((*s)==(*ss))) )return 0;
  8.     return 1+equalCharCount(s+1,ss+1);
  9. }
  10.  
  11. int main(){
  12.     printf("%d\n",equalCharCount("hellhaffoHowAreYou","hellhaffoHowaj"));
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement