4 ms·
Yes in c/++ it also allows you to use const. const foo = bar ? 1 : 2; Without ternary you wouldn't be able to use const specifier on foo.
by ensiferum 5y ago
Yes in c/++ it also allows you to use const.
const foo = bar ? 1 : 2;
Without ternary you wouldn't be able to use const specifier on foo.