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
What is selection sort in c?
What does #pragma once mean?
Is c++ based on c?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Why can’t constant values be used to define an array’s initial size?
How to Throw some light on the splay trees?
Explain the Difference between the New and Malloc keyword.
4. main() { int c=- -2; printf("c=%d",c); }
What are global variables and how do you declare them?
What is logical error?
What is memory leak in c?
What is the purpose of ftell?
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
What are extern variables in c?
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