#include <stdio.h>
int one [] = {0,1,2,3,4};
void print1(int *, int);

int main() {
    print1(one, 5);
    printf("Hello world!\n");
    return 0;
}

void print1(int *prt, int rows){
    int i;
    printf("Address Contents\n");
    for(i=0;i<rows;i++){
        printf("%8p %5d\n", prt+i, *(prt+i));
    printf("\n"); 
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: