Add pointers

This commit is contained in:
joachimschmidt557 2019-09-16 22:04:27 +02:00
parent 1f351ded8e
commit 1a976933df
2 changed files with 71 additions and 0 deletions

11
pointers.c Normal file
View file

@ -0,0 +1,11 @@
#include<stdio.h>
int
main() {
int x = 13;
int* p = &x;
printf("x: %d\n", x);
printf("p: %x\n", p);
printf("*p: %d\n", *p);
}