Created
June 25, 2013 22:55
-
-
Save dotsonjb14/5863201 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> | |
int f(int num) | |
{ | |
if(num > 0) | |
return 0 - num; | |
else | |
return num; | |
} | |
int main() | |
{ | |
if(f(f(2)) == -2) | |
std::cout << "It works\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment