Discussion
Avoiding malloc in an embedded program is usual because
Answer: C
A failure or a fragmented heap appears after weeks in service rather than in test, and the worst-case timing of an allocation is hard to bound. Static allocation, or a pool of fixed-size blocks, gives both determinism and a compile-time guarantee that the memory exists.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development