Programmation en c

abdou -  
Steefif Messages postés 485 Date d'inscription   Statut Membre Dernière intervention   -

comment declarer un tableau type chaine en c ?

exemple
dim nom(n) as string en vb

ou
var
nom:array[1..20] of string ;

son equivalent en c

merci

2 réponses

Thiphariel Messages postés 49 Date d'inscription   Statut Membre Dernière intervention   11
 
char tab[50]; par exemple
1
Steefif Messages postés 485 Date d'inscription   Statut Membre Dernière intervention   19
 
Thiphariel ca correspond à un tableau de caractere ca

pour un tableau de chaine : char tab[x][y]
tableau de chaine de taille x caractere et tailel du tableau y

ou sinon char* tab[50]
mais il faut faire attention a ta mémoire
0