My Alphabet question for interview
Part of my job is to sometimes give interviews for people we want to hire. One of my favorite question is to ask the person to write a problem that will print the alphabet on the console. So let’s say I have a c file my_program.c, I want to be able to compile it, execute, and get the alphabet on the console. Something like: $./my_program
a
b
c
...
z
I really like this question as I think it’s easy enough to know if the person is able to write a simple program in C. I will post here the several code I got… and sometimes it’s really surprising.
What do you think about the question? Do you think it’s a dumb question? Is it too hard/easy?
Hey there,
What company are you working for already ?
Just kidding, it’s probably a good question to start with, the first question I had once was to tell the difference between i++ and ++i in a ‘for’ loop..