Exemple d’initialisation des tableaux en C/C++

Author:


Download

#include 

// initialiser le tableau tab1
int tab1[] = {6, 2, 2, 0, 2, 10, 9, 3};
int index;

int main()
{
    index = 0;
    while (tab1[index] != 0)
        ++index;
    return (0);
}

Leave a Reply

Your email address will not be published. Required fields are marked *