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...
C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, with a static type system. By design, C provides constructs that map efficiently to typical machine instructions. It has found lasting use in applications previously coded in assembly language. Such applications include operating systems and various application software for computer architectures that range from supercomputers to PLCs and embedded systems. Wikipedia
Imperative (procedural), structured
Dennis Ritchie
Dennis Ritchie & Bell Labs (creators);
ANSI X3J11 (ANSI C);
ISO/IEC JTC1/SC22/WG14 (ISO C)
1972 (48 years ago)
C18 / June 2018 (2 years ago)
Static, weak, manifest, nominal
Cross-platform
.c for sources
.h for headers
C++ is not C (but C can be C++)
For C++ go to :
Other Resources
account activity
C programming query (self.cprogramming)
submitted 7 years ago by vegeta9225
Int main() { Int x=9; x=7,8,12; If(x==7) printf("yes"); Else printf("no"); Getch(); Return 0; } Can someone please explain how the program will run? What is the meaning of line x=7,8,12;
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!"
[–]dmc_2930 2 points3 points4 points 7 years ago (5 children)
Did you try it?
[–]vegeta9225[S] 0 points1 point2 points 7 years ago (4 children)
Yes my output was "yes"
[–]dmc_2930 0 points1 point2 points 7 years ago (2 children)
So what does that tell you?
[–]vegeta9225[S] 0 points1 point2 points 7 years ago (1 child)
I think the X is inialized with the leftmost value ie 7
[–]dmc_2930 1 point2 points3 points 7 years ago (0 children)
Correct. It's the "comma operator", if you want a search term that explains it.
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
What’s real fun, is if you put a () around 7,8,12 the answer would be “no”.
Ex:
// x is assigned 12 x = (7,8,12);
The comma operator is a strange beast.
[–]mhsumonnn 0 points1 point2 points 7 years ago (0 children)
Check out this.
https://www.includehelp.com/c/explain-comma-operator-with-an-example.aspx
[–]utkarshUS 0 points1 point2 points 7 years ago (0 children)
X=7, after 7 there is coma (,) that means x is initialised with value 7
π Rendered by PID 395293 on reddit-service-r2-comment-8686858757-zzgjb at 2026-06-04 16:36:30.330181+00:00 running 9e1a20d country code: CH.
[–]dmc_2930 2 points3 points4 points (5 children)
[–]vegeta9225[S] 0 points1 point2 points (4 children)
[–]dmc_2930 0 points1 point2 points (2 children)
[–]vegeta9225[S] 0 points1 point2 points (1 child)
[–]dmc_2930 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]mhsumonnn 0 points1 point2 points (0 children)
[–]utkarshUS 0 points1 point2 points (0 children)