#include <stdio.h>\r
#include <malloc.h>\r
\r
-void main()\r
+void baka(unsigned far *z)\r
{\r
unsigned w;\r
- unsigned far *z;\r
// w = _nmalloc(sizeof(unsigned));\r
z=(&w);\r
for(w=0; w<16;w++)\r
{\r
printf("z=(%Fp)%u w=(%Fp)%u\n", z, *z, &w, w);\r
}\r
+ printf("\n");\r
+}\r
+\r
+void pee(unsigned far *z)\r
+{\r
+ unsigned near *w;\r
+ w = _nmalloc(sizeof(unsigned));\r
+ z=(w);\r
+ for((*w)=0;(*w)<16;(*w)++)\r
+ {\r
+ printf("z=(%Fp)%u w=(%Fp)%u\n", z, *z, w, *w);\r
+ }\r
+ printf("\n");\r
+}\r
+\r
+void main()\r
+{\r
+ unsigned near w;\r
+ unsigned far *z;\r
+ baka(z);\r
+ pee(z);\r
+ printf("&w=%Fp\n", &w);\r
+ printf("z=%Fp\n", z);\r
+ printf("*z=%Fp\n", *z);\r
}\r