Embedded C Interview Questions





Embedded C Interview Questions

1) What is void pointer and what is its use?
The void pointer means that it points to a variable that can be of any type. Other pointers points to a specific type of variable while void pointer is a somewhat generic pointer and can be pointed to any data type, be it standard data type(int, char etc) or user define data type (structure, union etc.). We can pass any kind of pointer and reference it as a void pointer. But to deference it, we have to type the void pointer to correct data type.

2) What is ISR?
An ISR(Interrupt Service Routine) is an interrupt handler, a callback subroutine which is called when a interrupt is encountered.

3) What is return type of ISR?
ISR does not return anything. An ISR returns nothing because there is no caller in the code to read the returned values

4) What is interrupt latency?
Interrupt latency is the time required for an ISR responds to an interrupt.

5) How to reduce interrupt latency?
Interrupt latency can be minimized by writing short ISR routine and by not delaying interrupts for more time.


Comments

Popular posts from this blog

TechnoScripts: Pune's No 1 Embedded Training Center

Embedded System training in pune