Beginner
Rust
Q15 / 100
What is a struct in Rust?
Correct! Well done.
Incorrect.
The correct answer is B) A custom data type grouping related named fields
B
Correct Answer
A custom data type grouping related named fields
Explanation
struct Point { x: f64, y: f64 } defines a named group of values. Structs are value types stored on the stack unless boxed.
Progress
15/100