Noogai03
Level 6
WHOOPWHOOPWHOOPWHOOP
|
|
« Reply #20 on: December 05, 2013, 12:06:13 PM » |
|
There are 16 kinds of people in this world Those who understand hex F the rest
|
|
|
Logged
|
So long and thanks for all the pi
|
|
|
gimymblert
|
|
« Reply #21 on: December 07, 2013, 05:24:01 AM » |
|
F = 15 do not compute the joke
|
|
|
Logged
|
|
|
|
Noogai03
Level 6
WHOOPWHOOPWHOOPWHOOP
|
|
« Reply #22 on: December 07, 2013, 07:14:20 AM » |
|
F = 15 do not compute the joke
|
|
|
Logged
|
So long and thanks for all the pi
|
|
|
Prads
Level 1
|
|
« Reply #23 on: December 07, 2013, 07:42:29 AM » |
|
This made me LOL.
Why programmers like UNIX: who && gawk && uname && talk && date && wine && touch && unzip && strip && touch && finger && mount && fsck && more && yes; yes; more; yes; umount && make clean && sleep
|
|
|
Logged
|
|
|
|
InfiniteStateMachine
|
|
« Reply #24 on: December 07, 2013, 11:33:31 AM » |
|
One student in my class said this to another yesterday
"you would make a great politician because whenever someone wants to see what you're doing, no comments"
edit: the dwight gif was perfect
|
|
|
Logged
|
|
|
|
Boreal
Level 6
Reinventing the wheel
|
|
« Reply #25 on: December 07, 2013, 02:38:42 PM » |
|
#include <stdio.h>
void hello() { char *stuff = "Hello, world!"; }
void world() { char *thing; printf(thing); }
int main() { hello(); world(); return(0); } This one's not so much a joke as it is a magic trick. Try compiling it and running it, although it may not work depending on the compiler you use (GCC works).
|
|
|
Logged
|
|
|
|
Saishy
|
|
« Reply #26 on: December 07, 2013, 03:31:38 PM » |
|
Magic trick? Isn't that some dangerous memory manipulation lol?
|
|
|
Logged
|
|
|
|
Decent Machine
|
|
« Reply #27 on: December 07, 2013, 04:22:13 PM » |
|
lol @ the comic strip! Also love the UDP joke
|
|
|
Logged
|
|
|
|
Noogai03
Level 6
WHOOPWHOOPWHOOPWHOOP
|
|
« Reply #28 on: December 08, 2013, 12:38:08 AM » |
|
#include <stdio.h>
void hello() { char *stuff = "Hello, world!"; }
void world() { char *thing; printf(thing); }
int main() { hello(); world(); return(0); } This one's not so much a joke as it is a magic trick. Try compiling it and running it, although it may not work depending on the compiler you use (GCC works). Doesn't work with VS2012 (use of uninitialized variable stops the program) Tried with Code::Blocks, it just output random gibberish...
|
|
|
Logged
|
So long and thanks for all the pi
|
|
|
Boreal
Level 6
Reinventing the wheel
|
|
« Reply #29 on: December 08, 2013, 07:55:06 AM » |
|
Doesn't work with VS2012 (use of uninitialized variable stops the program) Tried with Code::Blocks, it just output random gibberish...
It works fine with GCC 4.8.1. Are you compiling it as C with no optimizations? I'm sure that if you enable optimizations, stuff() will get totally optimized out and printf() will read garbage.
|
|
|
Logged
|
|
|
|
Noogai03
Level 6
WHOOPWHOOPWHOOPWHOOP
|
|
« Reply #30 on: December 08, 2013, 12:30:29 PM » |
|
Doesn't work with VS2012 (use of uninitialized variable stops the program) Tried with Code::Blocks, it just output random gibberish...
It works fine with GCC 4.8.1. Are you compiling it as C with no optimizations? I'm sure that if you enable optimizations, stuff() will get totally optimized out and printf() will read garbage. I was compiling as C++, so I switched back to C. It was giving EXACTLY the same gibberish but I switched to Release and now it isn't saying anything... Why don't you just post a screenshot or something, I really can't be bothered to be get this working
|
|
|
Logged
|
So long and thanks for all the pi
|
|
|
Boreal
Level 6
Reinventing the wheel
|
|
« Reply #31 on: December 08, 2013, 12:39:38 PM » |
|
I was compiling as C++, so I switched back to C. It was giving EXACTLY the same gibberish but I switched to Release and now it isn't saying anything... Why don't you just post a screenshot or something, I really can't be bothered to be get this working As far as what it's supposed to do, it just outputs "Hello, World!". Although char *stuff, explicitly pointing to the string literal, goes out of scope, it is either a register or on the stack. Therefore, when thing is declared, if it uses the same register or location on the stack (likely), it still points to the string literal because C doesn't initialize variables. If you're using the VC compiler, I'm not surprised that it doesn't work because VC is never very standards-compliant to begin with. Of course, this behaviour is not defined in the standard!
|
|
|
Logged
|
|
|
|
gimymblert
|
|
« Reply #32 on: December 08, 2013, 12:54:44 PM » |
|
F = 15 do not compute the joke I didn't mod my hex number
|
|
|
Logged
|
|
|
|
Noogai03
Level 6
WHOOPWHOOPWHOOPWHOOP
|
|
« Reply #33 on: December 09, 2013, 11:53:35 AM » |
|
F = 15 do not compute the joke I didn't mod my hex number
|
|
|
Logged
|
So long and thanks for all the pi
|
|
|
Canned Turkey
Guest
|
|
« Reply #34 on: December 11, 2014, 01:16:11 PM » |
|
Let's get this thread back up again
My favorite number is Xn+1 = (aXn+b) mod m
|
|
|
Logged
|
|
|
|
gimymblert
|
|
« Reply #35 on: December 11, 2014, 05:55:38 PM » |
|
This one is quite random
|
|
|
Logged
|
|
|
|
Canned Turkey
Guest
|
|
« Reply #36 on: December 11, 2014, 07:12:12 PM » |
|
|
|
|
Logged
|
|
|
|
Krux
|
|
« Reply #37 on: December 12, 2014, 07:42:51 AM » |
|
I don't get the Rammstein Joke. It's an obvious reference to "du hast", but it's just nonsense. Random keywords. The most interesting part of "du hast" is, that with every word that is added to the sentence, the meaning of the entire sentence changes. Here there is no meaning all the time.
|
|
|
Logged
|
|
|
|
|