3 ms·
> In C, the comma operator evaluates both operands and discards the first result. Sounds like how the semicolon operator works in modern languages, like Rust.
by thomasahle 6y ago
> In C, the comma operator evaluates both operands and discards the first result.
Sounds like how the semicolon operator works in modern languages, like Rust.
- anonymoushn 6y agoIt does not, because this code does not compile: fn main() { println!("ok"; "Hello, world!"); }