What is a "comma expression"?

rempas rempas at tutanota.com
Sun Oct 10 13:12:47 UTC 2021


On Sunday, 10 October 2021 at 12:19:39 UTC, Adam D Ruppe wrote:
> On Sunday, 10 October 2021 at 12:01:33 UTC, rempas wrote:
>>     [...]
>
> The comma expression in C is a combination of two things but in 
> the context of another thing. Well that's not very good, but 
> like there's statements and expressions. Statements do 
> something but do not have a value. So `if() {}` and `return` 
> and `for() {}` are statements, because they don't have a value 
> you can assign to a variable.
>
> [...]

Thanks a lot for the detailed explanation! Have a nice day!


More information about the Digitalmars-d-learn mailing list