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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is selection sort in c?

593


What does #pragma once mean?

673


Is c++ based on c?

640


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

566


Why can’t constant values be used to define an array’s initial size?

820






How to Throw some light on the splay trees?

608


Explain the Difference between the New and Malloc keyword.

674


4. main() { int c=- -2; printf("c=%d",c); }

1354


What are global variables and how do you declare them?

604


What is logical error?

590


What is memory leak in c?

621


What is the purpose of ftell?

589


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1310


What are extern variables in c?

537


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1402