where do we use volatile keyword?

Answer Posted / achal ubbott

the keyword volatile is more used in embedded systems
programming, especially when we are dealing with the
special function registers of a microcontroller. e.g.
status register of UART or some other peripheral devices.
As you may know that volatile asks the compiler not to
subject the variable in question to optimization.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1541


What are multibyte characters?

644


Under what circumstances does a name clash occur?

692


What are the different types of errors?

646


What is c definition?

746






How can variables be characterized?

1652


Explain what is the concatenation operator?

628


Write a program to reverse a linked list in c.

647


Explain how do you determine the length of a string value that was stored in a variable?

670


Write a program for Overriding.

688


How many keywords (reserve words) are in c?

621


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1739


What is c method?

537


what is ur strangth & weekness

1820


What is pass by reference in c?

615