Files
prog-radzh/works/SysProg/lab-02/Readme.md
T
2026-09-17 11:15:13 +03:00

24 lines
511 B
Markdown

## task 1
```C
#include <stdio.h>
#include <stdint.h>
void main() {
uint32_t magic = 0xAABBCCDD;
uint8_t*byte_ptr = (uint8_t*) & magic;
printf("Byte 0: 0x%02X\n", byte_ptr[0]);
printf("Byte 1: 0x%02X\n", byte_ptr[1]);
printf("Byte 2: 0x%02X\n", byte_ptr[2]);
printf("Byte 3: 0x%02X\n", byte_ptr[3]);
}
```
## all conclusions
![alt text](<1.1-all_conclusions.png)
## printf output
![alt text](<1.3-printf output.png>)
## memory cell address
![alt text](<1.2-memory cell address.png>)