La redimention d'un tableau en laangage c

oussamar Messages postés 38 Statut Membre -  
oussamar Messages postés 38 Statut Membre -
Bonjour,
est ce qu'on a la fonction redimentioner un tableau en langage c ? si oui dit moi comment svp.
Configuration: Windows XP
Firefox 3.6

2 réponses

  1. fiddy Messages postés 441 Date d'inscription   Statut Contributeur Dernière intervention   1 847
     
    Bonsoir,
    Non on ne peut pas. En revanche, on peut réallouer une zone du tas contenant la bonne taille avec la fonction realloc : http://www.linux-kheops.com/doc/man/manfr/man-ascii-0.9/man3/realloc.3.txt.html

    Cdlt,
    0
  2. oussamar Messages postés 38 Statut Membre
     
    merci a toi fiddy.
    0