Hi,
Here is a some analysis i have made on References and Anonymous Unions.
Pls tell me that my assumption is correct or not?
1. Reference is a alias for another variable means i can create a reference to a variable where i can use the reference in the same way where i can use the variable . Means some what we are creating the two variables sharing the same memory.
2. If anonymous union contains two variables of same datatype
like
union {
int a,b;
};
this declaration gives us that a,b sharing the same memory.
means if we feel "a" as a actual variable and b as a reference for it , it acts in the same way as reference does.
Suri
Here is a some analysis i have made on References and Anonymous Unions.
Pls tell me that my assumption is correct or not?
1. Reference is a alias for another variable means i can create a reference to a variable where i can use the reference in the same way where i can use the variable . Means some what we are creating the two variables sharing the same memory.
2. If anonymous union contains two variables of same datatype
like
union {
int a,b;
};
this declaration gives us that a,b sharing the same memory.
means if we feel "a" as a actual variable and b as a reference for it , it acts in the same way as reference does.
Suri