Can a pointer be volatile ?



Can a pointer be volatile ?..

Answer / Md Ataul Mustafa

Yes, a pointer can be declared as volatile in C and C++. Volatile pointers inform the compiler that the data to which they point might be modified by hardware or other threads, so the compiler should not optimize accesses to these locations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Embedded Systems AllOther Interview Questions

Why do we need a infinite loop in embedded systems development? What are the different ways by which you can code in a infinite loop?

1 Answers  


What trade offs do you have for resource contention?

1 Answers  


Tell me can include files be nested?

1 Answers  


Tell me what is microcontroller?

1 Answers  


Mention how I/O devices are classified for embedded system?

1 Answers  


What are little endian and big endian types of storage? How can you identify which type of allocation a system follows?

1 Answers  


Have you designed ui, user interface?

1 Answers  


What are the differences between stateless and stateful systems, and impacts of state on parallelism.

1 Answers  


Mention what are the essential components of embedded system?

1 Answers  


Explain me what is the difference between microprocessor and microcontroller?

1 Answers  


Explain what is a watchdog timer?

1 Answers  


Tell me what type of scheduling is there in rtos?

1 Answers  


Categories