Cute Quinn
ask me anything, pertaining to RP, fandom, life, personal shit, programming, whatever
ғᴏxʏᴍᴏʀᴏɴ
what is the best pokemon
Cute Quinn
the best pokemon is snorlax
MundersOWundus
which anime was the worst mistake
Cute Quinn
Oreimo
Echo
What's your favorite color?
Cute Quinn
don't have one, color quality is contextual
dragon time
Favorite pizza
magnet
in C, what does
printf("%d", sizeof(printf("%d", 5)))
print?
Cute Quinn
dragon time Hawaiian, I'm afraid
Cute Quinn
magnet I don't have a fuckin clue
Cute Quinn
I haven't written C since college
magnet
valid
EsperBot
It should print whatever the size of int is in your system
EsperBot
and also print the number 5
EsperBot
5 followed by the size of int
Cute Quinn
for a real fun adventure:
magnet
sizeof function pointer iirc but that's normally the same as sizeof int
Cute Quinn
try to guess the output of the following two javascript statements before putting them in the console:
Cute Quinn
[] + {}
Cute Quinn
{} + []
EsperBot
printf's signature says it returns an int
kamikasei
0 and ”0”?
Cute Quinn
https://images.plurk.com/71pwJKWaMwyFC3RvGnIo24.png
kamikasei
magnet
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
ah the nightmares of Javascript
EsperBot
really that's interesting
Cute Quinn
did you know that you can rewrite any javascript program exactly using the subset of javascript that can be written using the characters []{}+.
EsperBot
I didn't know that, but I now feel like I have unlocked cursed knowledge
magnet
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
yeah but for most I imagine you need, like... a letter
Cute Quinn
https://i.imgur.com/rrZtuXX.png but not for javascript
Cute Quinn
oops I got it wrong, it's []{}+!
voidstaresback
Best mecha?
Cute Quinn
https://images.plurk.com/5vZWCRCJGIPVMzPzdXB1kK.png
voidstaresback
A person of taste and culture
載入新的回覆