3 ms·
Yes it is. Originally that's how you specified parameters: just the name in the parentheses, then (optionally) the types in a format similar to variable declara
by a-priori 13y ago
Yes it is. Originally that's how you specified parameters: just the name in the parentheses, then (optionally) the types in a format similar to variable declarations before the function body. If you didn't specify a type it would default to int, so argc above would be an int.
All modern C compilers still accept this style for backwards compatibility. I'm not sure about C++ compilers.