Name: Anonymous 2013-09-22 6:46
It has to swap two values if the first is greater than second.
a and b are both signed 32 bit integers.
function: macro(a,b) if (a>b) swap(a,b)
Rules:
1.No conditionals or comparisons allowed.(Ternary ?:, >,<,<=,>= are not allowed).
2.Cannot contain C keywords(while,do,if,else),semicolons,braces,backwards/forwards slashes and any other C macros.
3.Can't use temporaries or external variables/data.
a and b are both signed 32 bit integers.
function: macro(a,b) if (a>b) swap(a,b)
Rules:
1.No conditionals or comparisons allowed.(Ternary ?:, >,<,<=,>= are not allowed).
2.Cannot contain C keywords(while,do,if,else),semicolons,braces,backwards/forwards slashes and any other C macros.
3.Can't use temporaries or external variables/data.