L'allocation dynamique
Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Exercice 3 - Base
Ecrire la fonction qui alloue la mémoire d'une matrice de taille lignes * colonnes
, puis qui l’initialise à la valeur val*(numero_de_ligne+1)
, int * alloue_matrice(int lignes,int colonnes,int val)
.
Allocation tableau
1
2
3
int* alloue_tab(int lignes, int colonnes, int val) {
}
Enter to Rename, Shift+Enter to Preview
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content