Apple Interview Question
Software EngineersCountry: United States
Interview Type: In-Person
We can give any number of examples. Basically there should be a dispatcher which gives events to the event handler. The event handler is a function with multiple cases inside switch. If the event handler has to run(monitor) continuously, then it should be within a while always loop. Say you want to handle the bluetooth events in the lower layers, say you want to handle elevator control, say you want to handle the washing machine instructions., etc
The example of event driven programming in c is calculator using a switch case.
- Saj August 09, 2017