19 lines · 325 B · Text
RawDownload
// array pass by reference test - should change values? // function that takes arrayfun void mirror( int arg[] ){    // assign 0th element to 1st element    arg[0] => arg[1];} // declare arrayint foo[2];2 => foo[0];1 => foo[1]; // call the functionmirror( foo ); // testif ( foo[0] == foo[1] ) <<<"success">>>;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t