Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
Variable declarations in while loop conditions are also C++-only.
UTF-8 in C++11
Recursive Sort Example
First
for_each_argument
Simple Generic Data Type Example
Assertion Divide by Zero Example
Mi primer ejemplo con RexTester colgado en My wall
Calculate H.C.F using recursion
ECE2574_Function_Calling_Example