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 ?    23 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

Code for calculating square root without using library function, of math.h

4 Answers   IBM,


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

0 Answers  


what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error

9 Answers   Infosys,


pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc()

2 Answers   TCS, ZenQ,


What is the difference between static and global variables?

1 Answers  






why should i select you?

21 Answers   Wipro,


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

0 Answers  


can we declare a variable in different scopes with different data types? answer in detail

3 Answers   TCS,


What should not contain a header file?

2 Answers  


write a program for fibonaci series by using while loop in c?

2 Answers  


Why is it important to memset a variable, immediately after allocating memory to it ?

0 Answers  


how we can say java is platform independent, while we require JVM for that particular Operating System?

3 Answers   Honeywell, TCS,






Categories