Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
And C99 was meant to be an improved standard......
theKarlisK279965dWell hey now ... at least you did learn something. Something that can't be unseen ... but something none the less.
gitpush3203965dso basically they are all the same? Just given different name to make them happy?
PaperBag37765d@gitpush Not quite. stdin, stdout and stderr are three different data structures, defined in an external source file (hence the "extern" keyword). The problem was that they are not macros.
Macros instruct the compiler to replace every X in the code with Y before compiling.
"#define LEN 40" means "replace LEN with 40", and "#define stdin stdin" means "replace stdin with stdin"... which does nothing.
So now they technically are macros, just useless ones.
C is shit, cpp is good. Understand why, now?
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job