what is difference b/w extern & volatile variable??

Answer Posted / mchilakala

Extern keyword specifies that the variable had been
declared globally where as volatile keyword specifies that
there is a chance of changing it's value by external
conditions.
Ex:
if we declare a variable as

"Volatile date=03/08/2011"
then output is 03/08/2011
then after one day the output will change to 04/08/2011.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the basic structure of c?

557


What are the types of operators in c?

613


Describe the modifier in c?

604


What are pointers?

634


What is function what are the types of function?

560






What is the return type of sizeof?

596


Why doesnt this code work?

619


What are the functions to open and close file in c language?

730


Write a program to print fibonacci series using recursion?

587


What is a structure in c language. how to initialise a structure in c?

609


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1481


What is scanf () in c?

664


What is stack in c?

615


Why we use break in c?

553


Where define directive used?

607