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 is a structure member in c?

551


Describe newline escape sequence with a sample program?

659


Explain what are preprocessor directives?

630


Explain logical errors? Compare with syntax errors.

632


Why do we use pointer to pointer in c?

600






Why do we use & in c?

594


What is pointers in c?

659


Explain how do you list files in a directory?

619


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1306


List the difference between a "copy constructor" and a "assignment operator"?

586


When should a type cast not be used?

627


What are the types of data structures in c?

604


What is preprocessor with example?

590


What are enumerated types?

656


C language questions for civil engineering

1246