Advertisement
Guest User

Untitled

a guest
May 24th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #ifndef DEBUG
  5. #define DEBUG(...) printf(__VA_ARGS__)
  6. #endif
  7.  
  8. #define MAX_SIZE 10
  9.  
  10. int suma_rekurzivno(int *a) {
  11. if (a == NULL) return 0;
  12.  
  13.  
  14. }
  15.  
  16. int main() {
  17. int array[MAX_SIZE];
  18. int i = 0;
  19.  
  20. for (i=0; i<MAX_SIZE; i++) {
  21. scanf("%d", array+i);
  22. }
  23. printf("%d", suma_rekurzivno(array));
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement