Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Max
//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&(1<<(i+1)))>(array&(1<<i))) { max = (array&(1<<(i+1))); } else { max = (array&(1<<i)); } } return max; } int main(void) { int Array[5]; int Size = 5; int MaxNum; sprintf(Array, "12345"); MaxNum = maxarray(Array, Size); printf("The maximun elemrnt is %d\n", MaxNum); return 0; }
run
|
edit
|
history
|
help
0
20171127_ARRAY_PRIMOS
eliminate_duplicates.c
if (strcmp(abb, "lol")==0 || strcmp(abb, "LOL")==0 || )
Replacing Evens and Odd with ones and zeroes in a 3-Dimensional array
apel
than mine time's ocean as real white shakedown marine is mistake
DIGITOS DE U. A DECENAS
Why &(a+1) is not allowed
romitk
B_141125_Burbuja