No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prog.c 254B

123456789101112131415161718
  1. int max(int * tab, int size) {
  2. int i = 0;
  3. int max = 0;
  4. while (i<size) {
  5. printf(tab[i]);
  6. stop(10);
  7. if (tab[i] > max) {
  8. max = tab[i];
  9. }
  10. i = i+1;
  11. }
  12. return max;
  13. }
  14. int main() {
  15. int tab[10] = {1,2,3,4,5,6,7,8,9,0};
  16. printf(max(tab, 10));
  17. }