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 are the loops in c?

684


Why isn't it being handled properly?

731


How do I copy files?

705


What do you mean by c?

684


Does free set pointer to null?

666






What is the Purpose of 'extern' keyword in a function declaration?

740


How can I find out if there are characters available for reading?

732


What are the main characteristics of c language describe the structure of ac program?

744


C language questions for civil engineering

1341


Can you apply link and association interchangeably?

772


For what purpose null pointer used?

712


What is the difference between struct and typedef struct in c?

756


Is c easy to learn?

649


Can a pointer point to null?

688


What are volatile variables in c?

610