Skip to content

Instantly share code, notes, and snippets.

@onqtam
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onqtam/11285478 to your computer and use it in GitHub Desktop.
Save onqtam/11285478 to your computer and use it in GitHub Desktop.
#include <cstdio>
void f(double& var) {
var = 0.12;
}
int main(int argc, char** argv) {
float my;
f(my);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment