Advanced
Rust
Q65 / 100
What is the global allocator in Rust?
Correct! Well done.
Incorrect.
The correct answer is B) A type implementing GlobalAlloc that replaces the default allocator for all heap allocations in the program
B
Correct Answer
A type implementing GlobalAlloc that replaces the default allocator for all heap allocations in the program
Explanation
#[global_allocator] static A: MyAllocator = MyAllocator; replaces the default allocator. Used for embedded systems, tracking allocations, or custom memory management.
Progress
65/100