Multiple ChoiceBeginner 30s
malloc Failure
After malloc, you should:
Options
- 1Cast the returned pointer to int before use
- 2Check the returned pointer for NULL before use
- 3Zero the pointer with = 0 before any later use
- 4Free the pointer right after the allocation call
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.