Skip to content

Instantly share code, notes, and snippets.

@AndreiCherniaev
Last active June 2, 2025 04:40
Integer promotion example
#include <iostream>
int main()
{
uint16_t ttt= (((uint16_t)0x00 & 0x7F)<<8 | (uint16_t)(int8_t)0xA7);
printf("%u", ttt);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment