Spot the compile errors in a malloc snippet
Filed under AMD
The question
Given a C snippet assigning malloc(n * sizeof(int)) to an int variable and printing it, say whether it compiles and what the errors are.
No write-up yet. Related questions below have one.
Related AMD questions
Collected from public candidate posts and coding forums. Updated Nov 2026.