what is the use of keyword volatile??

Answer Posted / kala

it is the variable which can be modified outside of the
program. i.e hardwares can modify this variable. To avoid
compiler optimization we can use volatile.
this is used for memory mapped hardware and shared memory
usuage.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will be your course of action for a push operation?

663


What is function prototype in c language?

607


What is non linear data structure in c?

567


Can the sizeof operator be used to tell the size of an array passed to a function?

612


What is static and volatile in c?

775






What are Macros? What are its advantages and disadvantages?

639


hi any body pls give me company name interview conduct "c" language only

1661


What is selection sort in c?

602


I heard that you have to include stdio.h before calling printf. Why?

582


What are the different types of control structures in programming?

656


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

647


What is the difference between constant pointer and constant variable?

742


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

655


What is volatile variable how do you declare it?

562


In which layer of the network datastructure format change is done

1428