Comment retourner un tableau multidimensionnel ?
Bonjour,
J'arrive sans problème à retourner un tableau à une dimension avec un pointeur sur le retour (comme indiqué dans la FAQ) :
Code:
1 2 3 4
| char const *Tableau(char tableau[])
{
return tableau;
} |
Mais lorsque je veux retourner un tableau multidimensionnel :
Code:
1 2 3 4 5
| char const *Tableau2D(long nbLignes, char tableau[][])
{
return tableau;
} |
Dev-Cpp compile en me signalant une incompatibilité de type du pointeur de retour.
Et l'application plante...