Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between const volatile int i
& volatile const int j;

Answers were Sorted based on User's Feedback



what is the difference between const volatile int i & volatile const int j;..

Answer / suman ranjan

There is no difference between the two. The important thing
to note is what does this mean anyways.

The const type qualifier declares an object to be
nonmodifiable. The volatile type qualifier declares an item
whose value can legitimately be changed by something beyond
the control of the program in which it appears, such as a
concurrently executing thread.

An item can be both const and volatile, in which case the
item could not be legitimately modified by its own program,
but could be modified by some asynchronous process.

Is This Answer Correct ?    25 Yes 1 No

what is the difference between const volatile int i & volatile const int j;..

Answer / raj

There is no difference between const volatile int i and
volatile const int j

Is This Answer Correct ?    13 Yes 10 No

Post New Answer

More C Interview Questions

char ch="{'H','I',0};printf("%s",ch);what is output

9 Answers   Accenture,


Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }

4 Answers   Subex,


consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is

4 Answers   TCS,


Is there a way to switch on strings?

0 Answers  


how do we remove the printed character in printf statement and write next it it

1 Answers  


diff .between strcture and union

2 Answers  


What is c++ used for today?

0 Answers  


What's wrong with "char *p = malloc(10);" ?

4 Answers  


How do you write a program which produces its own source code as its output?

4 Answers  


write a program to display all prime numbers

0 Answers  


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

0 Answers  


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

0 Answers  


Categories