| 1 | #include <stdint.h> |
|---|---|
| 2 | #include <stdio.h> |
| 3 | #include <stdlib.h> |
| 4 | #include <string.h> |
| 5 | |
| 6 | struct obj { |
| 7 | uint32_t one; |
| 8 | uint32_t two; |
| 9 | uint32_t three; |
| 10 | uint32_t four; |
| 11 | }; |
| 12 | |
| 13 | int main() { |
| 14 | const int count = 16776960; |
| 15 | uint8_t *array = (uint8_t *)malloc(size: count); |
| 16 | memset(s: array, c: 0, n: count); |
| 17 | struct obj variable; |
| 18 | variable.one = variable.two = variable.three = variable.four = 0; |
| 19 | |
| 20 | puts(s: "break here"); |
| 21 | |
| 22 | for (int i = 0; i < count; i++) |
| 23 | array[i]++; |
| 24 | |
| 25 | puts(s: "done iterating"); |
| 26 | |
| 27 | variable.one = 1; |
| 28 | variable.two = 2; |
| 29 | variable.three = 3; |
| 30 | variable.four = 4; |
| 31 | |
| 32 | printf(format: "variable value is %d\n", |
| 33 | variable.one + variable.two + variable.three + variable.four); |
| 34 | puts(s: "exiting."); |
| 35 | } |
| 36 |
