Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
función free()
#include <stdio.h> #include <stdlib.h> void poblar(int *, int); void mostrar(int *, int); int main(void) { int N; scanf("%d", &N); int *puntero; puntero = (int *) malloc (sizeof(int) * N); if ( puntero == NULL ) exit(EXIT_FAILURE); // Manejo de excepciones. poblar(puntero, N); mostrar(puntero, N); free(puntero); return EXIT_SUCCESS; } void poblar(int *vector, int N) { int i; for ( i = 0 ; i < N ; i ++) scanf("%d", &vector[i]); } void mostrar(int *vector, int N) { int i; for ( i = 0 ; i < N ; i ++) printf("%d ", vector[i]); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
1, 2, 3, & 4-layer neural networks in C
SUDOKUS CORRECTOS
tickeParsing.c
thermal_containers
Simple interest
pointer example 3
TAREA M4 - LOTERIA
tgo
Newtons method
A_141128_MatricesProducto
Please log in to post a comment.