Ethan Dicks wrote:
Looking at what's there, I'd say that it
wouldn't surprise me that
some compilers would accept it (gcc does) and some might not,
It's legal, standard-conformant C code, so any compiler that doesn't
deal with it is broken.
I do represent myself in the workplace as a C expert,
so hopefully I
passed the audition.
While not 100% correct, your answer is a lot better than those from most
of the "experts" I've interviewed, and close enough that I would
consider it to pass. My purpose was to hire good programmers, not C
experts, but I held anyone claiming to be an expert to a higher standard
than those who don't.
Eric