cs_badsha
Messages postés64Date d'inscriptionvendredi 6 mai 2011StatutMembreDernière intervention 8 mai 2013
-
11 mai 2011 à 03:44
cs_badsha
Messages postés64Date d'inscriptionvendredi 6 mai 2011StatutMembreDernière intervention 8 mai 2013
-
15 mai 2011 à 15:38
je cherche un programme qui calcule la taille d'une matrice.(sur matlab c simple : size(matrice) est basta).
j'ai trouvé un code qui calcule la taille d'un tableau, mais pas une matrice,
#include <stdio.h>
#include <conio.h>
int tab [10] = { 1 , 2 , 3 , 4 , 5} ;
main ()
{
int len=sizeof (tab) /sizeof ( int ) ;
printf ( "taille=%d\n" , len ) ;
}
je n'arrive pas à l'appliquer sur une matrice
merci par avance