answersLogoWhite

0

Nested structures means we can have a structure inside another

eg:

struct A

{

...........

............

struct B

{

........

........

}b;

}a;

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

Why structure variables cannot be compared?

They can be compared with memcmp, but you should be careful if your structures contain:- pointers- alignment gaps- numeric variables (byte order!)- nested structures/unions


Can structures be nested in c?

yes. struct a { int x; int y; } struct b{ int z; struct a w; }


What are nested structures in C?

Structures can contain other structures as members; in other words, structures can nest. Consider the following two structure types: struct first_structure_type { int member_of_1; }; struct second_structure_type { double double_member; struct first_structure_type first_struct_member; }; The first structure type is incorporated as a member of the second structure type. You can initialize a variable of the second type as follows: struct second_structure_type second_struct_member; second_struct_member.double_member = 12345.6789; second_struct_member.first_struct_member.integer_member_of_1 = 5; The member operator . is used to access members of structures that are themselves members of a larger structure. No parentheses are needed to force a special order of evaluation; a member operator expression is simply evaluated from left to right. In principle, structures can be nested indefinitely. Ref: http://www.crasseux.com/books/ctutorial/Nested-structures.html


What is the if statement that appears inside another if statement?

nested if Statement


Can css comments be nested?

No, the CSS specifications explicitly state that CSS comments cannot be nested. If you try to do this, then your nested comments closing delimiter */ will close out the larger comment and anything after it will be rendered by the web browser. When comments are nested, the nested comment's beginning delimiter /* is ignored yet the closing */ is not.

Related Questions

Why structure variables cannot be compared?

They can be compared with memcmp, but you should be careful if your structures contain:- pointers- alignment gaps- numeric variables (byte order!)- nested structures/unions


Can structures be nested in c?

yes. struct a { int x; int y; } struct b{ int z; struct a w; }


What are nested structures in C?

Structures can contain other structures as members; in other words, structures can nest. Consider the following two structure types: struct first_structure_type { int member_of_1; }; struct second_structure_type { double double_member; struct first_structure_type first_struct_member; }; The first structure type is incorporated as a member of the second structure type. You can initialize a variable of the second type as follows: struct second_structure_type second_struct_member; second_struct_member.double_member = 12345.6789; second_struct_member.first_struct_member.integer_member_of_1 = 5; The member operator . is used to access members of structures that are themselves members of a larger structure. No parentheses are needed to force a special order of evaluation; a member operator expression is simply evaluated from left to right. In principle, structures can be nested indefinitely. Ref: http://www.crasseux.com/books/ctutorial/Nested-structures.html


What is nested logic?

In Nested Logic a Logic is contained within a Logic. If the Outer Logic is TRUE then the internal Logic is executed. Nested IF, Nested For, Nested While, e.t.c are some examples of Nested Logic in Modern Computer Languages.


Is there any difference between programming structures and having a structured program?

In a structured program, any structure can be nested within another structure.


When was Nested created?

Nested was created in 1977.


Why are vestigial structures evidence of evolution?

Because of the morphological homologies they display with similar structures in other extant and extinct lifeforms, following, like virtually every other morphological or anatomical feature of life, the nested hierarchies of biology.


What is the if statement that appears inside another if statement?

nested if Statement


Is have nested present past future?

"Have nested" is in the present perfect tense.


What are examples of nested solids?

three examples of nested solids


Can css comments be nested?

No, the CSS specifications explicitly state that CSS comments cannot be nested. If you try to do this, then your nested comments closing delimiter */ will close out the larger comment and anything after it will be rendered by the web browser. When comments are nested, the nested comment's beginning delimiter /* is ignored yet the closing */ is not.


What is a nested watershed?

A nested watershed is simply a watershed within a watershed. An example might be the Platte River watershed which is a nested watershed within the Missouri River watershed which in turn is nested within the Mississippi River watershed.