Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Maximum of Arrays
//gcc 5.4.0 #include <stdio.h> #define n 5 int main(void) { int array1[n] = {-991,-2,-3,-4,-5}; int array2[n] = {5,4,3,2,1}; int max=0; for(int i=0; i< n; i++){ if(array1[i] > max){ max = array1[i]; } } printf("Maximum is %d\n", max); return 0; }
run
|
edit
|
history
|
help
0
CheckProcessorEndianness
Absolute valu
Busqueda binaria version iterativa
Answer for last midterm question
LECTURA DE CADENAS CON FGETS
Project 5 v0.1
A_141211_Tartaglia
Incometax problem v0.1
C_141105_PuntosTriangulo
3-D array sum and search