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 |
Write an algorithm for a program that receives an integer as input and outputs the product of of its digits. E.g. 1234 = 24, 705 = 0
Can math operations be performed on a void pointer?
how to print this sereis 2 4 3 6 5..........?
How does memset() work in C?
what is the difference between embedded c and turbo c ?
What are the Advantages of using macro
enum day = { jan = 1 ,feb=4, april, may} what is the value of may? a)4 b)5 c)6 d)11 e)none of the above
find out largest elemant of diagonalmatrix
Will Macros support multiple arguments ?
What is the difference between variable declaration and variable definition in c?
is it possible to change the default calling convention in c ?
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE;