include stdio include conio include iostream int main void int float d

 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
#include<stdio.h>
#include<conio.h>
#include <iostream>
int main(void)
{
int *a, b;
float *x, y = 3.5;
double *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));
getch();
return 0;
}