what is volatile in c language?

Answer Posted / sudeep

It is nothing but telling to compiler that this variable
will change its value at anytime by means of anything and
compiler should not make any assumption about this variable.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

1975


What are identifiers and keywords in c?

555


Are the variables argc and argv are always local to main?

559


how to create duplicate link list using C???

2053


Can a pointer be volatile in c?

520






Explain what does the function toupper() do?

621


How can you read a directory in a C program?

639


What is a program?

644


How do you list a file’s date and time?

617


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

723


cavium networks written test pattern ..

3576


Why should I use standard library functions instead of writing my own?

658


What is I ++ in c programming?

609


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1427


What is the -> in c?

569