mirror of
https://github.com/theoleuthardt/learningC.git
synced 2026-06-13 01:27:54 +00:00
18 lines
No EOL
302 B
C
18 lines
No EOL
302 B
C
#include <stdio.h>
|
|
|
|
int main(){
|
|
int i = 10;
|
|
int *j = &i;
|
|
char a = 'a';
|
|
char *b = &a;
|
|
double d = 9.23334;
|
|
double *e = &d;
|
|
|
|
printf("%p\n", j);
|
|
printf("%d\n", *j);
|
|
printf("%p\n", b);
|
|
printf("%c\n", *b);
|
|
printf("%p\n", e);
|
|
printf("%f\n", *e);
|
|
return 0;
|
|
} |