can a pointer be volatile ? Explain.
Answer / Pawan Kumar Paswan
Yes, a pointer can be declared as 'volatile' in C++. The volatile keyword indicates that the value of the variable it points to may be modified by means outside the program's control (e.g., hardware registers or interrupts). By declaring a pointer as volatile, the compiler is forced to refrain from optimizations that assume the variable's value remains unchanged.
| Is This Answer Correct ? | 0 Yes | 0 No |
Discuss the concept of yagni.
Explain what is size of character, integer, integer pointer, character pointer?
Tell me how to create a child process in linux?
What is a 'volatile' variable?
What is the difference between asynchrony and concurrency?
How does the interrupts handle by using the threads?
Explain the significance of watchdog timer in embedded systems?
Tell me why is java mostly used in embedded systems?
You've just been assigned to a project in a new technology how would you get started?
Tell me is count down_to_zero loop better than count_up_loops?
How are variables mapped across to the various memories by the c compiler?
Explain the concept of separation of concerns?