Cute Quinn
@quinn2win
Mon, Jun 8, 2020 9:58 PM
ask me anything, pertaining to RP, fandom, life, personal shit, programming, whatever
ғᴏxʏᴍᴏʀᴏɴ
@lastbastion
Mon, Jun 8, 2020 9:59 PM
what is the best pokemon
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:01 PM
the best pokemon is snorlax
MundersOWundus
@therealbliss
Mon, Jun 8, 2020 10:02 PM
which anime was the worst mistake
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:03 PM
Oreimo
Echo
@EchoDoctor
Mon, Jun 8, 2020 10:18 PM
What's your favorite color?
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:21 PM
don't have one, color quality is contextual
dragon time
@MadarFoxfire
Mon, Jun 8, 2020 10:23 PM
Favorite pizza
magnet
@magnetDW
Mon, Jun 8, 2020 10:23 PM
in C, what does
printf("%d", sizeof(printf("%d", 5)))
print?
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:24 PM
dragon time
Hawaiian, I'm afraid
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:24 PM
magnet
I don't have a fuckin clue
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:24 PM
I haven't written C since college
magnet
@magnetDW
Mon, Jun 8, 2020 10:24 PM
valid
EsperBot
@PikaBot
說
Mon, Jun 8, 2020 10:26 PM
It should print whatever the size of int is in your system
EsperBot
@PikaBot
說
Mon, Jun 8, 2020 10:27 PM
and also print the number 5
EsperBot
@PikaBot
說
Mon, Jun 8, 2020 10:27 PM
5 followed by the size of int
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:28 PM
for a real fun adventure:
magnet
@magnetDW
Mon, Jun 8, 2020 10:28 PM
sizeof function pointer iirc but that's normally the same as sizeof int
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:28 PM
try to guess the output of the following two javascript statements before putting them in the console:
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:28 PM
[] + {}
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:28 PM
{} + []
EsperBot
@PikaBot
說
Mon, Jun 8, 2020 10:29 PM
printf's signature says it returns an int
kamikasei
@kamikasei
Mon, Jun 8, 2020 10:30 PM
0
and
”0”
?
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:31 PM
kamikasei
@kamikasei
Mon, Jun 8, 2020 10:33 PM
magnet
@magnetDW
Mon, Jun 8, 2020 10:34 PM
EsperBot
o u rite, it does do the return type.
but also it won't print the 5 cause that printf is inside the sizeof which is evaluated at compile time
magnet
@magnetDW
Mon, Jun 8, 2020 10:35 PM
ah the nightmares of Javascript
EsperBot
@PikaBot
說
Mon, Jun 8, 2020 10:37 PM
really
that's interesting
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:38 PM
did you know that you can rewrite any javascript program exactly using the subset of javascript that can be written using the characters
[]{}+.
EsperBot
@PikaBot
說
Mon, Jun 8, 2020 10:39 PM
I didn't know that, but I now feel like I have unlocked cursed knowledge
magnet
@magnetDW
Mon, Jun 8, 2020 10:40 PM
you can technically do something resembling that with most/all programming languages, right? you just need to find the smallest subset of built in operations that is turing complete
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:40 PM
yeah but for most I imagine you need, like... a letter
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:41 PM
but not for javascript
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:41 PM
oops I got it wrong, it's
[]{}+!
voidstaresback
@voidstaresback
Mon, Jun 8, 2020 10:55 PM
Best mecha?
Cute Quinn
@quinn2win
Mon, Jun 8, 2020 10:55 PM
voidstaresback
@voidstaresback
Mon, Jun 8, 2020 11:03 PM
A person of taste and culture
載入新的回覆
printf("%d", sizeof(printf("%d", 5)))
print?
[] + {}
{} + []
0
and”0”
?but also it won't print the 5 cause that printf is inside the sizeof which is evaluated at compile time
[]{}+.
[]{}+!