Advertisement
pichumy

Untitled

Feb 17th, 2014
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. int countMoreThanSevensRecursively(int *array, int size)
  2. {
  3. int count=0;
  4. if(size<=0)
  5. return 0;
  6. else
  7. {
  8. count = count + countMoreThanSevensRecursively(array+1,size-1);
  9. if(array[0] > 7)
  10. count++;
  11. }
  12.  
  13. return count;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement