When defining a structure in C, which keyword is used?
- class
- define
- struct
- type
In C programming, the keyword "struct" is used to define a structure. The "struct" keyword is followed by the structure name, and within the curly braces, you define the structure members or fields.
Loading...
Related Quiz
- When dealing with an array of structures in C, what does each element of the array represent?
- How do you declare a pointer to an integer in C?
- In C, subtracting two pointers that point to elements of the same array yields a result of type ________.
- The ________ statement in C is used to execute a block of code only when a specific condition is true.
- What is the primary use of the fseek function in file handling?