Лаба 02

This commit is contained in:
2026-09-17 10:13:50 +03:00
parent d91b6fb9bf
commit f503e2ed46
3 changed files with 28 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
## fdsf
```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]);
}
```
@@ -0,0 +1,7 @@
### Ex 1
![solution ex1](2.1.png)
### Ex 2
![solution ex2](2.2.png)
+7
View File
@@ -0,0 +1,7 @@
### Ex 1
![solution ex1](2.1.png)
### Ex 2
![solution ex2](2.2.png)