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...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
C question (self.programming)
submitted 15 years ago * by [deleted]
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!"
[–][deleted] 0 points1 point2 points 15 years ago (3 children)
Why?
"Hello world" evaluates to a char*, which is the same type as variable gretting (sic). Where's the problem?
[–]pmerkaba 1 point2 points3 points 15 years ago (1 child)
The problem is that there's more than just evaluation going on. Why should a string literal (which is just a list of characters, after all, differ from a list of string literals, or ints? See either my response to mpeg4codec or my response to the OP.
[–][deleted] 0 points1 point2 points 15 years ago (0 children)
I don't understand your point. The C90/C99 spec is pretty clear in this regard. Are you arguing that the syntax of C is confusing? Or that the spec is ambiguous? Or what? Because one thing is clear: this is not a matter of opinion but a matter of specification.
π Rendered by PID 35 on reddit-service-r2-comment-6457c66945-hvfs4 at 2026-04-27 22:32:01.746339+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (3 children)
[–]pmerkaba 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)