Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Code that may or may not pass muster

Name: Anonymous 2009-10-01 2:42

I know we've got some computer science students in here, and I know you've written some questionable code at 2:30 in the morning before your project is due. So post it here! Preferably one-liners. Here's mine. I'm interested to see what my prof thinks of it... opinions could differ.

printf("%.1f%c", *e, (0 == (e - matrix + 1) % size)?'\n':'\t');

Name: Anonymous 2009-10-01 3:50

>>4
The zero is there so readers know I'm comparing for numerical value. And why didn't you get rid of the extra parens if you're into pointless minimalism?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List