Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Max successs
//gcc 5.4.0 #include <stdio.h> int maxarray(int array[], int size) { int i; int max; for(i=0; i<(size-1) ;i++) { if ((array[(i+1)])>(array[i])) { max = (array[i+1]); } else if ((array[(i+1)])<=(array[i])) { max = (array[i]); } } return max; } int main(void) { int Array[5]={1,2,3,4,5}; int Size = 5; int MaxNum; MaxNum = maxarray(Array, Size); printf("The maximun elemrnt is %d\n", MaxNum); return 0; }
run
|
edit
|
history
|
help
0
qsort para struct
array and its sum
MATRICES TRIANGULARES
Jan23
Max of arrays
strend
1.7 Test parallel function
lab8part2final
150108_RecursividadFibonacci
lab 11 v0.7