what is volatile in c language?

Answer Posted / hareesha chikkapattanager parv

It is nothing but telling to compiler that this variable
will change its value at anytime by hard or outside the
controll of the program and compiler should not make any
assumption or optimize about this variable.

Is This Answer Correct ?    46 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do u mean by Direct access files? then can u explain about Direct Access Files?

1632


What do you know about the use of bit field?

600


Is the exit() function same as the return statement? Explain.

650


how logic is used

1487


What is the advantage of an array over individual variables?

725






What is a constant and types of constants in c?

592


Why do some versions of toupper act strangely if given an upper-case letter?

622


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

596


Differentiate between new and malloc(), delete and free() ?

655


What is a nested loop?

637


What is || operator and how does it function in a program?

618


write a program to copy the string using switch case?

2387


Why is it that not all header files are declared in every C program?

666


What is define directive?

627


Can you think of a logic behind the game minesweeper.

1993