answersLogoWhite

0

What is a structure member?

Updated: 12/15/2022
User Avatar

Wiki User

11y ago

Best Answer

methods and variables inside the structure is callled structure member

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a structure member?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a compression member of a structure?

column


What is a tension member of a structure?

stacture beam............


Are structures and pointers related in c plus plus?

Not really, but you can have: - a pointer pointing to a structure (FILE * is an example) - a pointer pointing to a structure-member (eg: struct tm tm; int *ip= &tm.tm_year) - a structure-member that is a pointer (any type) Example: typedef struct TreeNode { struct TreeNode *left, *right; int data; } TreeNode; TreeNode *root = (TreeNode *)calloc (sizeof (TreeNode), 1);


What is data structure why is an array called a data structure which are the other data structures?

A data structure is a collection of more than one elementary item, in some kind of aggregate organization. An array is a type of structure where more than one item of the same type are arranged serially in memory, and accessed using an index. The item can either be an elementary type or it itself can be a structure type. A struct (not to be confused with the use of "structure" in this answer) is a type of structure where more than one item of the same or different types are arranged serially in memory, and accessed using the structure member (.) operator. A union is similar to a struct, except that each member occupies the same address. This means that only one type of data can be stored at any one time in a union. A self-referential structure is a type of structure, usually constructed of simpler structures, linked together with some kind of pointer scheme. Examples of this are the linked list and tree.


What is the recursive solution in data structure?

You cannot have recursion within a data structure: struct foo { int x; foo y; // compiler error }; This has to fail; there is no end point to the recursion. If a foo is member of a foo, then the member foo also requires a member foo, and so on to infinity... If a structure needs to refer to another instance of itself, we can use a member pointer: struct foo { int x; foo* y; // ok }; A pointer works because all pointers are the same length regardless of the pointer's type (the type being referred to). Using member pointers like this is fundamental to many data structures, such as linked lists: struct node { int data; node* prev; // previous node in the sequence (may be NULL) node* next; // next node in the sequence (may be NULL) };

Related questions

What is meant by a structure within a structure?

A structure that is a member of another structure is a structure within a structure.


What is pointer to a member in objective c?

It is a pointer that points to a member of a structure.


What is a compression member of a structure?

column


What is a tension member of a structure?

stacture beam............


Can you pass address of the structure member as a function argument?

Yes.


What is the axial direction?

It is the direction in line with the axis of a member or structure


What structure does surface area represent in a cell?

plasma member


How would you alter the value stored in the structure member using function?

Pass the structure by reference then dereference the member. typedef struct S { int x; }; void foo (struct S* s) { s->x=42; }


What is an astrovirus?

An astrovirus is a member of the Astroviridae family of viruses with a distinct starlike surface structure.


What are look-alike chromosomes that are identical in structure with another member of the pair?

Homologous chromosomes


What is a structural collaspse?

Its spelled as :structural collapseStructural failure refers to loss of the load-carrying capacity of a component or member within a structure or of the structure itself....


What statement best describes the structure of the North Carolina General Assembly?

It is a bicameral legislative body which includes a 50 member Senate and a 120 member House of Representatives.