What's this:
Code:q = (q->next == oldhead ? NULL : q->next);
Printable View
What's this:
Code:q = (q->next == oldhead ? NULL : q->next);
it means
Code:if (q->next == oldhead)
q = NULL;
else
q = q->next;
Ah...thanks
And it's called a ternary operator :-)
These are handy for when you wish to annoy people with hard to follow code. I do use them a lot of the time though... Just do not get carried away with them since they really do make your code more difficult on others.
Frequent use of these & a lack of/poor use of white space & you have all the standards evident in Obfuscated C Code.