Код: Выделить всё
#include
#include
#include
#include
int main() {
char buf[500];
std::memset(buf, '\0', sizeof(buf));
int x;
std::memcpy(&x, &buf[213], sizeof(int));
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79034771/reading-potentially-unaligned-fields-in-modern-c[/url]