Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
atoi on hex
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> int main() { unsigned int digit = atoi("42"); unsigned int hex1 = atoi("2A"); unsigned int hex2 = atoi("0x2A"); std::cout << digit << std::endl; std::cout << hex1 << std::endl; std::cout << hex2 << std::endl; }
run
|
edit
|
history
|
help
0
Catching divide-by-zero with /EHc
dharmesh
Wrong type deduction of std::valarray expression
Regex failure
new
timeConversion
trying to find if reinterpret_cast preserves calling convention
Matrix paths right-down only, going through XY
seh exception
Title