Embedded Software Engineer Question: Download Questions PDF
Tell me can a pointer be volatile?
![Embedded Software Engineer Interview Answer Embedded Software Engineer Interview Question](https://globalguideline.com/public/images/interview/10.png)
Answer:
If we see the declaration volatile int *p, it means that the pointer itself is not volatile and points to an integer that is volatile. This is to inform the compiler that pointer p is pointing to an integer and the value of that integer may change unexpectedly even if there is no code indicating so in the program.
Download Embedded Software Engineer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell us what is the need for an infinite loop in embedded systems? | Suppose you buy some RTOS, what are the features you look for in? |