Tutorial 1_18

Kopieren von Arrays

______________________________________________________________________
// 1_18 

#include <stdio.h>

void main(void)
{
    int array1[] = {1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1};
    int array2[11];
    for(int zaehler=0;zaehler<11;zaehler++)
    {
        array2[zaehler] = array1[zaehler];
        printf("%d %d\n", array1[zaehler], array2[zaehler]);
    }
}
______________________________________________________________________
Zurück