Advertisement
dorin98

Untitled

Nov 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. unsigned int get_max(unsigned int *arr, unsigned int len) {
  4.         return 3;
  5. }
  6.  
  7. int main(void)
  8. {
  9.         unsigned int arr[] = { 19, 7, 129, 87, 54, 218, 67, 12, 19, 99 };
  10.         unsigned int max;
  11.  
  12.         max = get_max(arr, 10);
  13.  
  14.         printf("max: %u\n", max);
  15.  
  16.         return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement