Afficher les adresses d’un tableau

Author:

 adresse
Download


#include 

void affcher_addr(int a[])
{
    int *b;
    int i;

    b = a;

    for(i = 0;i < 10; i++)
	{
        printf("Valeur %d adresse de %16lun",*b,b);
        b++;
    }
}
void main() {
    int a[5];
    int i;

    for(i = 0;i<10;i++) {
        a[i]=i;
    }
    affcher_addr(a);
}

Leave a Reply

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