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 are the features of c languages?
Why c is known as a mother language?
Can you please explain the difference between syntax vs logical error?
If errno contains a nonzero number, is there an error?
Is c easier than java?
Why do we use stdio h and conio h?
Explain the difference between the local variable and global variable in c?
What are linked lists in c?
What's the right way to use errno?
What are reserved words with a programming language?
Where can I get an ansi-compatible lint?
What are integer variable, floating-point variable and character variable?
What are multibyte characters?
How can I avoid the abort, retry, fail messages?
write a program to generate address labels using structures?