#include <stdio.h>
int main(){
int a=10;
int *p;
// * = asterisk
p = &a;
// & = ampersand
printf("%x \n",&a);
printf("%x",p);
}
할 때 사용한다.
printf("%d",*p);
#include <stdio.h>
int main(){
char arr[6] = {"hello"};
char* pointer;
pointer = &arr[0];
printf("%c",*pointer);
printf("%c",*(pointer+1));
printf("%c",pointer[2]);
printf("%c",*(pointer+3));
}