Structure member lvalue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swapnaoe
    New Member
    • Jul 2006
    • 21

    Structure member lvalue

    Hi all,

    I was going through one article on Structures and Unions on net. I found this statement. Couldn't understand what it means.. Can anyone explain me what it means if it makes sense.

    ----------------------------------------------------------------------------------------------------------------
    ' A member that does not represent a bit field can be qualified with either of the type qualifiers volatile or const. The result is an lvalue. '
    --------------------------------------------------------------------------------------------------------------------

    Thanks
    Swapna
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by swapnaoe
    Hi all,

    I was going through one article on Structures and Unions on net. I found this statement. Couldn't understand what it means.. Can anyone explain me what it means if it makes sense.

    ----------------------------------------------------------------------------------------------------------------
    ' A member that does not represent a bit field can be qualified with either of the type qualifiers volatile or const. The result is an lvalue. '
    --------------------------------------------------------------------------------------------------------------------

    Thanks
    Swapna
    So let's break it down. Can you define each of these terms for me in the context of this paper?

    member
    bit field
    qualified
    volatile
    constant
    lvalue

    Comment

    • swapnaoe
      New Member
      • Jul 2006
      • 21

      #3
      It says a bit field cannot be qualified with either of the qualifiers.
      Originally posted by sicarie
      So let's break it down. Can you define each of these terms for me in the context of this paper?

      member
      bit field
      qualified
      volatile
      constant
      lvalue

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by swapnaoe
        It says a bit field cannot be qualified with either of the qualifiers.
        Um, I'm not sure where you got that, because it says the exact opposite of what you posted the first time.

        I'd go through and make sure I understood each term before I tried to decipher the sentence. I would even re-write it with different definitions substituted, if it helped.

        Comment

        • swapnaoe
          New Member
          • Jul 2006
          • 21

          #5
          'A member which doesnt represent a bit field"=>
          Point1:
          doesn't this imply the other members which can be defined in a structure like predefined datatypes like int,char, and user-defined ones like structures, unions etc?

          Point2:
          If something(membe rs of a structure other than bit feilds) is defined by negating its opposite(in this case bit feild),then that definition(qual ifying) is not applicable to its opposite(bit feilds)??

          Point3: Please let me know your opinion as ur previous post didn't help me much.


          Originally posted by sicarie
          Um, I'm not sure where you got that, because it says the exact opposite of what you posted the first time.

          I'd go through and make sure I understood each term before I tried to decipher the sentence. I would even re-write it with different definitions substituted, if it helped.

          Comment

          Working...