I recently had an interview and a "skill test" in C. It was proctored by the interviewer in-person. I had so many questions about the questions. It was like, what is the output of "some code" and while obvious, there were some questions where specific CPU architecture mattered:
#include <stdio.h>
int main() {
unsigned int x = 0x01020304;
unsigned char *c = (unsigned char*)&x;
printf("First byte of x: 0x%02x\n", *c);
return 0;
}
I was like, what architecture are we running on here? So, I answered that "it depends" and explained how it would depend on the architecture. They came back and said that I didn't know C.Sure, whatever. Probably dodged a bullet.