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

If fflush wont work, what can I use to flush input?

608


Explain null pointer.

615


What are qualifiers?

613


Explain what is the difference between null and nul?

649


Why doesn't C support function overloading?

1607






Do you know the use of 'auto' keyword?

652


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2225


What is logical error?

603


What kind of structure is a house?

549


What are the 3 types of structures?

568


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1580


What are pointers? Why are they used?

627


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1503


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1879


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1887