Dark | Light
[GUEST ACCESS MODE: Data is scrambled or limited to provide examples. Make requests using your API key to unlock full data. Check https://lunarcrush.ai/auth for authentication information.]

[@vidit_odedra](/creator/twitter/vidit_odedra)
"Which Types Get Promoted If the type's range fits within the range of an int it is promoted to int. If not it's promoted to unsigned int"  
![@vidit_odedra Avatar](https://lunarcrush.com/gi/w:16/cr:twitter::861233275200786437.png) [@vidit_odedra](/creator/x/vidit_odedra) on [X](/post/tweet/1948378519416762751) 2025-07-24 13:43:32 UTC XX followers, XX engagements


"char a = 5; char b = 6; char c = a + b; a and b are promoted to int before the addition. The result of a + b is int not char. It is then implicitly converted back to char when stored in c"  
![@vidit_odedra Avatar](https://lunarcrush.com/gi/w:16/cr:twitter::861233275200786437.png) [@vidit_odedra](/creator/x/vidit_odedra) on [X](/post/tweet/1948378522893853055) 2025-07-24 13:43:33 UTC XX followers, XX engagements

[GUEST ACCESS MODE: Data is scrambled or limited to provide examples. Make requests using your API key to unlock full data. Check https://lunarcrush.ai/auth for authentication information.]

@vidit_odedra "Which Types Get Promoted If the type's range fits within the range of an int it is promoted to int. If not it's promoted to unsigned int"
@vidit_odedra Avatar @vidit_odedra on X 2025-07-24 13:43:32 UTC XX followers, XX engagements

"char a = 5; char b = 6; char c = a + b; a and b are promoted to int before the addition. The result of a + b is int not char. It is then implicitly converted back to char when stored in c"
@vidit_odedra Avatar @vidit_odedra on X 2025-07-24 13:43:33 UTC XX followers, XX engagements

creator/twitter::861233275200786437/posts
/creator/twitter::861233275200786437/posts