Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Argument passing by using reference and value
//clang 3.8.0 #include <iostream> using namespace std; void dup(int& a,int& b,int& c){ a+=2; b+=2; c+=2; } int main() { int d=5,e=6,f=7; dup(d,e,f); cout << "a="<<d<<"\n""b="<<e<<"\n"<<"c="<<f; return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
virtual members
Set sub sequences.
Throttle Example (Send two requests every two seconds)
Virtual Function Example
Access to temporary object
You can't erase a std::unordered_map::local_iterator
Standard Template Library
Assertion Divide by Zero Example
overloading
C++ Operator Overloading
stackse - search stackoverflow differently
Please log in to post a comment.