View Single Post
Another way to do it is using conditional operators. or ?:..... i hope that you would find satisfactory example.... if you do not know refer this code but its rough....
(x>y)?(printf("\n\n X is greater than Y"))
printf("\n\n Y is greater than X"));