17 lines
240 B
C
17 lines
240 B
C
#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);
|
|
|
|
const char* str = "Pointers";
|
|
for (char* p = str; p++; *p != 0) {
|
|
printf("%c", *p);
|
|
}
|
|
printf("\n");
|
|
}
|