Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
UINT64 to UINT truncation
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include <Windows.h> int main() { UINT u32 = 0xFFFFFFFF; UINT64 u64 = u32; ++u64; std::cout << u32 << std::endl; std::cout << u64 << std::endl; std::cout << ((UINT(u64) > u32) ? "Greater" : "Not Greater") << std::endl; }
run
|
edit
|
history
|
help
0
Visual Studio expand modified
Wide string to lowercase
Sum of numbers in a series using sum formular
xxx
vector of bool
operator/function lookup
Struct packing
return reference (msvc)
Fibonacci stairs
move swap