Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Problem 10 GROUP 3*/
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int equalCharCount(char* s,char* ss){
- if((*s)=='\0')return 0;
- if((*ss)=='\0')return 0;
- if((*s)!=(*ss)) return 0;
- return 1+equalCharCount(s+1,ss+1);
- }
- int main(){
- printf("%d\n",equalCharCount("hellhaffoHowAreYou","hellhaffaj"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement