Skip to content

Instantly share code, notes, and snippets.

@dotsonjb14
Created June 25, 2013 22:55
Show Gist options
  • Save dotsonjb14/5863201 to your computer and use it in GitHub Desktop.
Save dotsonjb14/5863201 to your computer and use it in GitHub Desktop.
#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