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 |
Is return a keyword in c?
why we are using float in C
What is the translation phases used in c language?
What is the purpose of macro in C language?
WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?
void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }
Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments
How can I find out the size of a file, prior to reading it in?
what is differnence b/w macro & functions
who is first prime minister in india??
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is the difference between exit() and _exit()?