Answers

Question and Answer:

  Home  Embedded Software Engineer

⟩ Tell me can a pointer be volatile?

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.

 190 views

More Questions for you: