what is the difference between const volatile int i
& volatile const int j;
Answers were Sorted based on User's Feedback
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 |
Answer / raj
There is no difference between const volatile int i and
volatile const int j
| Is This Answer Correct ? | 13 Yes | 10 No |
What is meant by high-order and low-order bytes?
How to reverse a string using a recursive function, with swapping?
How can I get random integers in a certain range?
What is the function of volatile in c language?
Compare and contrast compilers from interpreters.
What is double pointer?
C program to find all possible outcomes of a dice?
What's the best way of making my program efficient?
What is the difference between NULL and NUL?
What is enumerated data type in c?
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
What ios diff. Between %e & %f?