Output array address
#include <stdio.h> void print_addr(int a[]); main() { int a[5]; int i; for(i = 0;i<5;i++) { a[i]=i; } print_addr(a); } void print_addr(int a[]) { int *b; int i; b = a; for(i = 0;i < 5; i++) { printf("value %d and address is %16lu\n",*b,b); b++; } }