Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/19/08 19:12
Read: times


 
#154917 - Incorrect
Responding to: ???'s previous message
Shivaram Kumara Cunchala said:
1. Volatile is a global variable.

No: volatile may equally be applied to local variables.

2. takes 1 byte of instruction

No: Volatile may be applied to any variable of any size, and does not affect the size.

3. Compiler cannot optimise the variable.

Not exactly: It's only apparently redundant accesses that are affected.

4. type casting is not allowed.

Eh??

5. Value can be modified by ports, Hardware, interrupts,serial ports only.

No: volatile places no restriction on what can modify the value.

6. Always allocated in Heap memory.

No: not true at all.

7. Permanent memory location is allocated for it.

No: volatile does not affect the storage allocated

Note that your statement 7 contradicts your statement 6!



List of 22 messages in thread
TopicAuthorDate
keyword volatile            01/01/70 00:00      
   Opposite!            01/01/70 00:00      
      volatile modifier            01/01/70 00:00      
         Incorrect            01/01/70 00:00      
         incorrect!            01/01/70 00:00      
            even more            01/01/70 00:00      
               A heap o' trouble            01/01/70 00:00      
                  the curse of the PC programmers            01/01/70 00:00      
      meaning of "volatile" with example            01/01/70 00:00      
   example            01/01/70 00:00      
      gobbelygook            01/01/70 00:00      
      heap?            01/01/70 00:00      
      Confused?            01/01/70 00:00      
   Google told me...            01/01/70 00:00      
   link            01/01/70 00:00      
      go through my explanation            01/01/70 00:00      
         put simply...            01/01/70 00:00      
   thanks            01/01/70 00:00      
   answer accepted by interviewer            01/01/70 00:00      
      Not entirely            01/01/70 00:00      
      not input only            01/01/70 00:00      
         That's the kind of thing I'd be looking for...            01/01/70 00:00      

Back to Subject List