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 |
int far *near * p; means
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
When can a far pointer be used?
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
Can you please explain the difference between malloc() and calloc() function?
Explain the use of bit fieild.
2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x);
What is a 'null pointer assignment' error?
What is a structural principle?
What is the difference between void main() and void main (void) give example programme?
Will Macros support multiple arguments ?
Why c is called object oriented language?