Created
September 25, 2013 14:54
-
-
Save orontee/6700812 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
const float GAIN(1.5); | |
void | |
multiply(float *f) | |
{ | |
(*f) *= GAIN; | |
} | |
void | |
multiply_long(float *f) | |
{ | |
(*f) = (*f) * GAIN; | |
} | |
void | |
multiply_with_temp(float *f) | |
{ | |
float t = *f; | |
t = t * GAIN; | |
*f = t; | |
} | |
int main() | |
{ | |
float *const f = new float(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment