How to define minimum integer data type in C?

Here are two simple questions for Embedded C beginners. One can provide answer in comment box. You can also share interesting questions. We will publish all good questions along with name of the provider.

These questions are simple but many students couldn’t answer properly during interview.

Q1: There is a global variable name count . This variable will always be in between 0 and 199.

If you have very limited MCU data memory , how will you define this ? Make sure to use only standard C keywords.

Q2: Define I/O port P of same data width which you used in Q1.

← Back

Thank you for your response. ✨

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top

Discover more from

Subscribe now to keep reading and get access to the full archive.

Continue reading