It allows you to pass the array to a function by value, or get it returned by value from a function.
Structs can be passed by value, unlike arrays which decay to a pointer in these contexts.
More Related Contents:
- “error: assignment to expression with array type error” when I assign a struct field (C)
- Opaque C structs: various ways to declare them
- How do you make an array of structs in C?
- Need help using qsort with an array of structs
- How to include a dynamic array INSIDE a struct in C?
- Array of variable length in a structure
- Access struct members as if they are a single array?
- Array of structs replacing values over itself
- Array of size 0 at the end of struct [duplicate]
- How can I malloc a struct array inside a function? Code works otherwise
- Dynamic Array of strings [closed]
- can’t extract data from a structure array c++ [closed]
- Fast way to tokenize a string in c
- Difference between passing array and array pointer into function in C
- Difference between array type and array allocated with malloc
- How to define a typedef struct containing pointers to itself?
- printf adds extra `FFFFFF` to hex print from a char array [duplicate]
- Unsized array declaration in a struct
- Does C99 guarantee that arrays are contiguous?
- Why does “typdef struct { struct S *s; } S;” containing a pointer to same type compile?
- How is the result struct of localtime allocated in C?
- How to initialize a structure with flexible array member
- Why can´t we assign a new string to an char array, but to a pointer?
- C pointers and arrays/ ‘sizeof’ operator [duplicate]
- How to define and work with an array of bits in C?
- Associative arrays in C
- C initialize array within structure
- Find size of array without using sizeof
- Iterating over same type struct members in C
- problems with char array = char array