Solution for Exercise 18-8
#include <stdio.h> int main() { int array[5] = { 100, 200, 300, 400, 500 }; int x; for(x=0;x<5;x++) printf("%d at %p\n",array[x],&array[x]); return(0); }
Output
100 at 0x7ffeeb788a00
200 at 0x7ffeeb788a04
300 at 0x7ffeeb788a08
400 at 0x7ffeeb788a0c
500 at 0x7ffeeb788a10
Copyright © 1997-2024 by QPBC.
All rights reserved