Top "Structure" questions

Structure is a fundamental, tangible or intangible notion referring to the recognition, observation, nature, and permanence of patterns and relationships of entities.

Structure padding and packing

Consider: struct mystruct_A { char a; int b; char c; } x; struct mystruct_B { int b; char a; } y; The …

c struct structure padding packing
How to declare a structure in a header that is to be used by multiple files in c?

If I have a source.c file with a struct: struct a { int i; struct b { int j; } }; How can …

c file header structure
Tree implementation in Java (root, parents and children)

I need to create a tree structure similar as the attached image in Java. I've found some questions related to …

java tree structure
How to return a struct from a function in C++?

I've tried on a few different forums and can't seem to get a straight answer, how can I make this …

c++ function struct return structure
How to work with string fields in a C struct?

I'm having trouble making a database based on a singly-linked list in C, not because of the linked list concept …

c string linked-list structure
Can I define a function inside a C structure?

I am trying to convert some C++ code to C and I am facing some problems. How can I define …

c function structure
Which SQL command can I use to see the structure of a table on SQL Server?

I have a table on a SQL Server and I would like to export its structure to send to a …

sql sql-server structure
Allocating memory for a Structure in C

I'm tasked to create a program which dynamically allocates memory for a structure. normally we would use x=malloc(sizeof(…

c malloc structure
How to make a structure extern and define its typedef

I'm trying to implement tree algorithms in C. I have declared a extern struct in a header file that is …

c extern structure
What does a zlib header look like?

In my project I need to know what a zlib header looks like. I've heard it's rather simple but I …

header structure zlib