3 ms·
C is clearly influenced by functional languages. Though C programming is usually about effects, effects occur in expressions which usually return a value excep
by kazinator 6y ago
C is clearly influenced by functional languages.
Though C programming is usually about effects, effects occur in expressions which usually return a value except in cases when their type is "void" (which was a later introduction into C, possibly from C++).
C even has an if/then conditional that yields a value, the ternary operator x ? y : z, which is a more strongly typed version of (if x y z).