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
How do I use void main?
What is a double c?
Is c still relevant?
What are the parts of c program?
What is the difference between class and object in c?
How do I convert a string to all upper or lower case?
Differentiate between the = symbol and == symbol?
What is switch in c?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
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 are local static variables? How can you use them?
What is hungarian notation? Is it worthwhile?
What is a union?
Is boolean a datatype in c?
Can you add pointers together? Why would you?