S
stsnaiv
what's the composite type of two sturct/union?
such as
struct f bar;
struct f
{
int member;
}bar;
it will produce a composite type? what's that?
______________________________________________________
C11 6.5p7 says that
An object shall have its stored value accessed only by an lvalue expressionthat has one of
the following types:
88)
— a type compatible with the effective type of the object,
— a qualified version of a type compatible with the effective type of theobject,
— a type that is the signed or unsigned type corresponding to the effective type of the
object,
— a type that is the signed or unsigned type corresponding to a qualifiedversion of the
effective type of the object,
— an aggregate or union type that includes one of the aforementioned types among its
members (including, recursively, a member of a subaggregate or contained union), or
— a character type.
The intent of this list is to specify those circumstances in which an object may or may not be aliased
so my question is what is "be aliased" ?? An object how to access using above ways?? here i can't get through so far.....
_____________________________________________
C11 6.5.2.2p10 says that
Every evaluation in the calling function (including
other function calls) that is not otherwise specifically sequenced before or after the
execution of the body of the called function is indeterminately sequenced with respect to
the execution of the called function.
what this means??
6.5.2.p2 says that
With respect to an indeterminately-sequenced function call, the operation of postfix++is a single evaluation.
and 6.5.16.2p3 says that
Acompound assignmentof the form E1op=E2 is equivalent to the simple assignment expression E1 = E1op(E2), except that the lvalue E1is evaluated only once, and with respect to an indeterminately-sequenced function call, theoperation of a compound assignment is a single evaluation.
for example?? And what is the difference between indeterminately-sequencedand unsequenced??
Thanks everyone......
such as
struct f bar;
struct f
{
int member;
}bar;
it will produce a composite type? what's that?
______________________________________________________
C11 6.5p7 says that
An object shall have its stored value accessed only by an lvalue expressionthat has one of
the following types:
88)
— a type compatible with the effective type of the object,
— a qualified version of a type compatible with the effective type of theobject,
— a type that is the signed or unsigned type corresponding to the effective type of the
object,
— a type that is the signed or unsigned type corresponding to a qualifiedversion of the
effective type of the object,
— an aggregate or union type that includes one of the aforementioned types among its
members (including, recursively, a member of a subaggregate or contained union), or
— a character type.
The intent of this list is to specify those circumstances in which an object may or may not be aliased
so my question is what is "be aliased" ?? An object how to access using above ways?? here i can't get through so far.....
_____________________________________________
C11 6.5.2.2p10 says that
Every evaluation in the calling function (including
other function calls) that is not otherwise specifically sequenced before or after the
execution of the body of the called function is indeterminately sequenced with respect to
the execution of the called function.
what this means??
6.5.2.p2 says that
With respect to an indeterminately-sequenced function call, the operation of postfix++is a single evaluation.
and 6.5.16.2p3 says that
Acompound assignmentof the form E1op=E2 is equivalent to the simple assignment expression E1 = E1op(E2), except that the lvalue E1is evaluated only once, and with respect to an indeterminately-sequenced function call, theoperation of a compound assignment is a single evaluation.
for example?? And what is the difference between indeterminately-sequencedand unsequenced??
Thanks everyone......