(Untitled)

Apr 25, 2008 03:28

I feel like such a n00b when i see shit like this 'printf((argc > ?) ? "%s ": "%s", *++argv);'. All this time i didn't know you could put an expression in printf.

Leave a comment

Comments 4

xhugglesx April 25 2008, 12:11:06 UTC
I never use the ? expression. I don't think it's readable.

Reply

mmm_brains April 26 2008, 03:07:37 UTC
You're right, it's not, but it's one of my favorite things. I just love one liners and it is made for them. The tutorial i'm reading through uses increment/decrement operators liberally with their pointer arithmetic and it's totally unreadable and hilarious. At the very least, entertaining.

Reply

xhugglesx April 26 2008, 23:03:18 UTC
Good ol' c. It's been a while, but I have to admit that I don't miss pointers all that much. C# has made me soft. Have you ever played with python?

Reply

mmm_brains April 27 2008, 02:58:56 UTC
I have the manual, and i've thought about it so many times, i just haven't brought myself to do it. It's not really a priority right now,

Reply


Leave a comment

Up