include stdio include conio int main void int float double printf Adr

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <stdio.h>
#include <conio.h>
int main(void)
{
int *a, b=0;
float *x, y = 3.5;
double *m, n=0;
printf("Adr : a = %p\tb = %p\tx = %p\ty = %p\tm = %p\tn = %p\n", &a, &b, &x, &y, &m, &n);
a = &b;
printf(" Enter b = ");
scanf("%d", a);
x = &y;
printf(" a = %p\tb = %d\n", a, b);
getch();
b -= y;
printf(" a = %p\t*a = %d\tb = %d\n", a, *a, b);
getch();
m = (double *)a;
printf(" a = %p\tm = %p\n", a, m);
getch();
m = &n;
printf(" n = %p\tm = %p\n", &n, m);
getch();
n = 5.5;
m+=2;
printf(" n = %lf\tn = %p\tm = %p\n", n, &n, m);
getch();
*m = (float) *a - n + (int) *x;
printf("m=%p\t*m=%lf\n",m,*m);
getch();
m -= 2;
printf(" n = %lf n = %p m = %p *(m+2) = %lf\n", n, &n, m, *(m+2));
printf("Znach: a = %p\tb = %d\tx = %p\ty = %f\tm = %p\tn = %lf\n", a, b, x, y, m, n);
system("pause");
return 0;
}