Question d’entretien chez Silicon Labs

First coding problem: debug this garbage function doing pointer arithmetic in C. Second coding problem: code up a pretty straightforward state machine. Only needed to understand how interrupts work.

Réponse à la question d'entretien

Utilisateur anonyme

23 mars 2023

Need to be familiar with basic C syntax, C pointers, deprecated C syntax (e.g. : while (*str++) ), null terminators, etc. I also got asked a follow-up question on how to calculate powers of 2 in C efficiently, which is trivial if you use bitshifting. For second coding problem, need to know how interrupts work at a basic level -- it can't pass in any parameters, nor return any values, and upon servicing interrupt control is handed back to where you were.