Initial commit
This commit is contained in:
16
kapitel10/loopa-pekaradresser.c
Normal file
16
kapitel10/loopa-pekaradresser.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#define SIZE 11
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int i;
|
||||
char namn[SIZE] = "Jack-Benny";
|
||||
printf("Adressen till 'namn': %p\n", (void*)&namn);
|
||||
|
||||
for (i=0; i<SIZE; i++)
|
||||
{
|
||||
printf("Element %i -> %p\n", i, (void*)&namn[i]);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user