Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
150113_ArrayOrdenado
//Title of this code //gcc 4.8.2 #include <stdio.h> short sonValoresOrdenados(long d , long v[d]); int main(void) { long a[10] = {1, 2, 3, 2, 5, 6, 7, 8, 9, 10}; if(sonValoresOrdenados(10, a) != 0) { printf("\n\nSÍ ORDENADOS\n\n"); } else { printf("\n\nNO ORDENADOS\n\n"); } return 0; } short sonValoresOrdenados(long d , long v[d]) { long i; for(i = 0 ; i < d - 1 ; i++) { if(v[i] > v[i + 1]) return 0; } return 1; }
run
|
edit
|
history
|
help
0
Project 5 v0.1
Different variable scanf/printf statements
1/23/2017
Stub Program for Problem 3 HW 2
ternar
child process
Divisibility :- #simple-math #ad-hoc-1 #basics
lambda
A_141212_HistoriaDePunteros
C_14119_Media