Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Max2
//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[4]; int Size = 4; int MaxNum; sprintf(Array, "12345"); MaxNum = maxarray(Array, Size); printf("The maximun elemrnt is %d\n", MaxNum); return 0; }
run
|
edit
|
history
|
help
0
new
structt
B_141118_Euclides
E
EUCLIDES BIEN
Command Expressions in Gnu C
gets.c
G
Test2
#Define / Case/ If practice