#include /** * Arrays are passed by Reference sinces array are already pointers! * @author gtowell * Created March 2021 * **/ void parray(char id, int asz, int arr[asz]) { for (int i = 0; i < 10; i++) printf("%1c%3d%12d%12d%5d\n", id, i, arr, &arr[i], arr[i]); } int main(void) { int a[10]; for (int i = 0; i < 10; i++) a[i] = (i*29) % 17; char id = 'M'; for (int i = 0; i < 10; i++) printf("%1c%3d%12d%12d%5d\n", id, i, a, &a[i], a[i]); parray('A', 10, a); }