Electronics Firmware Engineer - Interview Questions - 5

Electronics Firmware Engineer - Interview Questions - 5


112. What does the keyword const mean?
113. What is the significance of using const keyword?
114. What does the keyword volatile mean?
115. Can a parameter be both const and volatile? Explain.
116. Can a pointer be volatile? Explain.
117. What's wrong with the following function?
int square(volatile int *ptr)
{
return *ptr * *ptr;d.
}
118. Given an integer variable a, write two code fragments. The first should set bit 3 of a. The second should clear bit 3 of a. In both cases, the remaining bits should be unmodified.
119. Who handle malloc function
120. Which is larger in heap or stack
121. Difference between register and volatile
122. Why oscillator is used?
123. Why cannot arrays be passed by values to functions?
124. What is the difference between embedded systems and the system in which RTOS is running?
125. What is the difference between RTOS and OS
126. Write the "standard" MIN macro-that is, a macro that takes two arguments and returns the smaller of the two arguments.
127. Define small function in macro
128. Infinite loops often arise in embedded systems. How does you code an infinite loop in C?
129. What is the use of bit fields
130. What are the advantages of using pointers in a program
131. Which bit wise operator is suitable for turning OFF a particular bit in a number?

Post a Comment

0 Comments