what is the difference between const volatile int i
& volatile const int j;

Answers were Sorted based on User's Feedback



what is the difference between const volatile int i & volatile const int j;..

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

what is the difference between const volatile int i & volatile const int j;..

Answer / raj

There is no difference between const volatile int i and
volatile const int j

Is This Answer Correct ?    13 Yes 10 No

Post New Answer

More C Interview Questions

int far *near * p; means

0 Answers   Honeywell,


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.

0 Answers   TCS,


When can a far pointer be used?

0 Answers  


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;

5 Answers   Assurgent, TCS,


Can you please explain the difference between malloc() and calloc() function?

0 Answers  






Explain the use of bit fieild.

0 Answers  


2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x);

9 Answers   HCL, Tech Mahindra,


What is a 'null pointer assignment' error?

0 Answers  


What is a structural principle?

0 Answers  


What is the difference between void main() and void main (void) give example programme?

0 Answers  


Will Macros support multiple arguments ?

7 Answers   Oracle,


Why c is called object oriented language?

0 Answers  


Categories