Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
static_cast makes a copy
#include <iostream> void change_one_print_other( int& a, const int& b ) { a = 0; std::cout << b << "\n"; } int main(void) { int x = 5, y = 5; change_one_print_other(x, x); change_one_print_other(y, static_cast<int>(y)); }
run
|
edit
|
history
|
help
0
1568-1644 Solar eclipses, make 1617(8) and 1620(12) Lunar eclipses the same as Chinese records
cvcvcvcvv
rstring
alternate list
Eratosfen conmment
VecScalMultiOpLaod
N Queens problem
C++ Car Racing game framework 2
Abejas beta
AVL - ith element