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
Explain how do you declare an array that will hold more than 64kb of data?
How do I copy files?
What is the value of h?
What do mean by network ?
What does c mean in basketball?
What is the use of header?
Write a program to reverse a given number in c?
What is the use of the function in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is the auto keyword good for?
I need testPalindrome and removeSpace
#include
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is static memory allocation?
Can we use any name in place of argv and argc as command line arguments?
What is the use of ?: Operator?