Programmation en c

abdou -  
Steefif Messages postés 526 Statut Membre -

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 54 Statut Membre 11
 
char tab[50]; par exemple
1
Steefif Messages postés 526 Statut Membre 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