473,394 Members | 1,887 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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
Jan 10 '08 #1
4 1296
sicarie
4,677 Expert Mod 4TB
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
Jan 10 '08 #2
It says a bit field cannot be qualified with either of the qualifiers.
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
Jan 11 '08 #3
sicarie
4,677 Expert Mod 4TB
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.
Jan 11 '08 #4
'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(members of a structure other than bit feilds) is defined by negating its opposite(in this case bit feild),then that definition(qualifying) is not applicable to its opposite(bit feilds)??

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


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.
Jan 13 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Eric Smith | last post by:
Is a structure containing an incomplete array as its last element (per paragraph 2 of section 6.7.2.1 of ISO/IEC 9899:1999 (E)) itself an incomplete type? That appears to be indicated by paragraph...
15
by: damian birchler | last post by:
Hi I'm wondering of what type a structure is. Of course, it is a _structure_, but an array isn't an _array_ either. So of what type is a structure? I'd say a pointer, am I right?
9
by: tkrogc | last post by:
I compiled the source below using the comeau compiler http://www.comeaucomputing.com/tryitout/ Why does the f funtion compile while the g function produces an lvalue error ? (I thought the two...
14
by: zoltan | last post by:
Hi, Consider a structure as follows : struct dummy { int a; int b; int c; };
2
by: thokadess | last post by:
I have declared an char array in my structure.After creating instance of the structure,i initialized its members in following way. structure student { char name; int rol_no; } int...
9
by: Bill Grigg | last post by:
All, Can anyone supply an example or reference to an example of using reflection to determine the data types and array lengths contained in a nested stucture in C#? Actually, it is a structure...
3
by: Rakesh Kumar | last post by:
Hi - I am actually trying to get my feet in multi-threaded C++ programming. While I am aware that the C++ standard does not talk about threads (at least, for now - in C++03) - my question is more...
15
by: akomiakov | last post by:
Is there a technical reason why one can't initialize a cost static non- integral data member in a class?
14
by: deepak | last post by:
Hi Experts, I'm getting this compilation error while trying to access a member in structure. at what time we will get this error message? Thanks, Deepak
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.