Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Matriz funcona medio raor aslñdk
#include <stdio.h> #include <stdlib.h> #include <time.h> int main ( ) { int **matriz ; int filas = 4 ; int columnas = 4 ; matriz = (int**)malloc(filas*sizeof(int*)); if (matriz == NULL){ printf("no se pudo reservar espacio en la memoria"); exit(1); } for (int i = 0 ; i < filas ; i++){ matriz[i]= (int*)malloc(columnas*sizeof(int*)); } srand(time(NULL)); for(int i = 0 ; i < filas ; i++) for(int j = 0 ; j < columnas; j++){ matriz[i][j]= rand()%4; printf("%d%d ",matriz[i][j]); } printf("\n"); }
run
|
edit
|
history
|
help
0
Ordered Openmp
Taco Code
Lab6 v1.1 Sin,cos,tan,cot
BigInteger maxMinSum
T3.C
A_141201_MatrizTodosDistintos
lol
Stack frame enum test
Conflito de Escrita em Matriz
18BCE2182 ASSESS_1 Q1-5