Created
February 11, 2024 13:53
-
-
Save AndreiCherniaev/eba53fc86c42b540061fa39b592d997c to your computer and use it in GitHub Desktop.
Integer promotion example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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