Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int identici(int *primo, int *secondo,int n){
- if(n>0){
- if(primo[n-1]==secondo[n-1])
- identici(primo,secondo,n-1);
- else
- return 0;
- }
- //caso base
- //allora n e' <=0
- else{
- if(primo[n]==secondo[n])
- return 1;
- else
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment