added writesize
[tridge/junkcode.git] / malloc_zero.c
1 #include <stdlib.h>
2 #include <stdio.h>
3
4 main()
5 {
6         int s_a, s_b;
7         unsigned u_a, u_b;
8         size_t a, b;
9         size_t r;
10         s_a = u_a = a = (1<<30) + 5;
11         s_b = u_b = b = 5000;
12
13         r = s_a * s_b;
14         printf("r=%u\n", r);
15
16         r = u_a * s_b;
17         printf("r=%u\n", r);
18
19         r = s_a * u_b;
20         printf("r=%u\n", r);
21
22         r = u_a * u_b;
23         printf("r=%u\n", r);
24 }