Medium
Allocating an alignas(64) type with plain new
Compiled as C++17 or later, what does this program print?
main.cpp
#include <iostream>
#include <cstdint>
struct alignas(64) CacheLine {
int value;
};
int main() {
CacheLine* p = new CacheLine{42};
std::cout << (reinterpret_cast<std::uintptr_t>(p) % 64 == 0) << std::endl;
}50 of 117 in C++