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
Not all reserved words are written in lowercase. TRUE or FALSE?
ATM machine and railway reservation class/object diagram
Why is c so important?
What type is sizeof?
Is r written in c?
Compare array data type to pointer data type
Explain the difference between #include "..." And #include <...> In c?
What is size of union in c?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Why malloc is faster than calloc?
Explain what is operator promotion?
How can variables be characterized?
about c language
What is the difference between struct and typedef struct in c?
What is a dynamic array in c?