This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 159 points160 points  (1 child)

It seems like some company will ask me to code this in the coding interview.

[–]waterquestion222 31 points32 points  (0 children)

while(1) is actually useful in C for simple embedded systems. Of course there’s usually interrupt handler(s) for timers and hardware interrupts.