Лаба 02

This commit is contained in:
2026-09-17 10:52:03 +03:00
parent eed5b14892
commit 7d87e6ae31
12 changed files with 0 additions and 4 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

+14
View File
@@ -0,0 +1,14 @@
## Лаба 02
```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 @@
### Ex2 2.1
![solution ex1](2.1.png)
### Ex2 2.2
![solution ex2](2.2.png)