Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

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


{filelink=13389}

#include <stdio.h>
 
// 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);
}

No comments yet.

Leave a Comment