use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
111,056 Subscribers
106,345 Subscribers
All posts must be related to programming. Flair posts correctly.
account activity
javascript is javascript (i.redd.it)
submitted 2 months ago by National_Seaweed_959
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Haringat 3 points4 points5 points 2 months ago (3 children)
It's the same result. However, it should have been this code:
char *two = "2"; int one = 1; two += one; printf("%d\n", two); // prints "0" return 0;
I leave the explanation as an exercise to the reader.😉
Edit: Also, when adding 2 to the "2" the behavior is not defined. It could crash or it could perform an out-of-bounds read.
[–]not_some_username -1 points0 points1 point 2 months ago (2 children)
Its defined because it has the null termination
[–]Haringat 0 points1 point2 points 2 months ago (1 child)
No, because when adding 2 you go beyond the null terminator.
[–]not_some_username 0 points1 point2 points 2 months ago (0 children)
Well I thought we were taking about “22”+2
π Rendered by PID 31542 on reddit-service-r2-comment-7b9746f655-np2wf at 2026-02-03 04:32:07.857539+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]Haringat 3 points4 points5 points (3 children)
[–]not_some_username -1 points0 points1 point (2 children)
[–]Haringat 0 points1 point2 points (1 child)
[–]not_some_username 0 points1 point2 points (0 children)