How are the members of a structure accessed in C?
- By using the arrow (->) operator
- By using the dollar sign ($)
- By using the dot (.) operator
- By using the exclamation mark (!)
In C, structure members are accessed using the dot (.) operator. This allows you to access the individual fields within a structure.
Loading...
Related Quiz
- In C, to close a file opened by fopen, the function ________ is used.
- Using the ________ keyword before a function suggests to the compiler that the function should be expanded at the point where it is called.
- Which searching algorithm is typically the most straightforward to implement?
- You are tasked with creating an easy-to-read API for a library written in C. What feature can you use to make the data types and function signatures more user-friendly?
- What is the lifetime of a static variable in a C program?