Embedded C General Interview Questions
  1. What is the segmentation fault error in C?
  2. What are some common causes for the segmentation fault error in C?
  3. What is ‘stack overflow’ error in C?
  4. Why do you think stack overflow transpires in the first place?
  5. Why do we use ‘volatile’ keyboard in C?
  6. How to use a variable in a source file which is defined in another source file?
  7. How will you protect a character pointer by some accidentally modification with the pointer address?
  8. Why do we use ‘static’ variable in C?
  9. Can you highlight the differences between CISC and RISC?
  10. What do you understand by a function pointer?
  11. What do you understand by the term structure padding?
  12. Can you tell us something about the dangling pointers in embedded C?
  13. What is the function of the keyword const? Give an example.
  14. Why should we use the keyword const in the first place?
  15. What is the chief functionality of realloc ()?
  16. Can parameter be both const and volatile ?
  17. What is an inline function?
  18. Is Count Down_to_Zero Loop better than Count_Up_Loops?
  19. Can structures be passed to the functions by value?
  20. What is the size of character, integer, integer pointer, character pointer?
  21. What is a NULL pointer and what is its use?
  22. What is a void pointer and what is its use?
  23. What is ISR?
  24. What is the return type of ISR?
  25. What is interrupt latency?
  26. How to reduce interrupt latency?
  27. Can we use any function inside ISR?
  28. Can we use printf inside ISR?
  29. Can we put a breakpoint inside ISR?
  30. Can static variables be declared in a header file?
  31. Can include files be nested?
  32. What is the difference between hard real-time and soft real-time OS?
  33. What type of scheduling is there in RTOS?
  34. What is priority inversion?
  35. What is priority inheritance?
  36. What is a semaphore?
  37. Types of Semaphores?
  38. What is spin lock?
  39. In platforms with significant constraints on memory size, is it more preferable to allocate memory statically or dynamically?
  40. Why are C and C++ still very popular and widely supported in embedded firmware development?
  41. Is firmware and data embedded in microcontrollers generally safe from downloading, tampering, or hacking?
  42. Which parameters decide the size of data type for a processor ?
  43. Significance of watchdog timer in Embedded Systems
  44. Why ++n executes faster than n+1?
  45. When should we use register modifier?
  46. What is NVIC in ARM Cortex?
  47. Can we change the interrupt priority level of Cortex-M processor family?
  48. What is the start-up code?
  49. What is segmentation fault in C?
  50. What are the common causes of segmentation fault in C?
  51. Are integers signed or unsigned?
  52. What do you mean by enumeration in C?
  53. What is the endianness?
  54. What is the difference between malloc and calloc?
  55. What is the return value of malloc (0)?
  56. Where can the function pointers be used?
  57. What is void or generic pointers in C?
  58. What are the post-increment and decrement operators?
  59. What is a reentrant function?
  60. What is virtual memory?
  61. Why embedded system is useful?
  62. Explain whether we can use semaphore or mutex or spinlock in interrupt context in Linux Kernel?
  63. What is the bus in a microcontroller?
  64. What is qualifiers?