Tell me is Count Down_to_Zero Loop better than Count_Up_Loops?
Submitted by: MuhammadCount down to zero loops are better. Reason behind this is that at loop termination, comparison to zero can be optimized by the compiler. Most processors have instruction for comparing to zero. So they don't need to load the loop variable and the maximum value, subtract them and then compare to zero. That is why count down to zero loop is better.
Submitted by: Muhammad
Submitted by: Muhammad
Read Online Embedded Software Engineer Job Interview Questions And Answers
Top Embedded Software Engineer Questions
☺ | Explain me can we use printf inside ISR? |
☺ | Tell me can we use any function inside ISR? |
☺ | Tell me what are the qualifiers in C? |
☺ | Tell me how many types of IPC mechanism you know? |
☺ | Tell me why embedded system is useful? |
Top Best Engineering Categories
☺ | Mechanical Engineering Interview Questions. |
☺ | Civil Engineering Interview Questions. |
☺ | Chemical Engineering Interview Questions. |
☺ | Electrical Engineering Interview Questions. |
☺ | Automobile Engineering Interview Questions. |