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 |
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
How to add two numbers without using semicolon at runtime
How many ways are there to swap two numbers without using temporary variable? Give the each logic.
What is the use of pragma in embedded c?
what is the use of using linked list and array?
10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning
main() { int i = 1; int num[] = {1,2,3,4}; num[i] = i++; printf("%d", num[i]); } what will be the output? }
22 Answers NDS, TCS,
How to write c functions that modify head pointer of a linked list?
What are the application of c?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float
How to write a program for swapping two strings without using 3rd variable and without using string functions.