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 are the concepts introduced in OOPs?
how to print "hai" in c?
How to declare pointer variables?
Why we use stdio h in c?
write a c program in such a way that if we enter the today date the output should be next day's date.
what do you mean by enumeration constant?
program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
What is #include cctype?
How was c created?
Write a C Programm.. we press 'a' , it shows the albhabetical number is 1, if we press 'g' it shows the answer 7.. any can help me
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
What is the use of keyword VOLATILE in C?