I want to use ternary operator without else in C. How do I do it.
(a)? b: nothing;
something like this. What do I use in nothing part?
Try this
BOOL bIsOK = (a == 5)?TRUE:FALSE;