Question.2
A developer allocates an array and frees it:
int* buf = new int[100]; // ... use buffer ... delete buf; // No []
What happens?
Select Answer
Works fine
Only the first element is freed; the rest leak
Undefined behavior
Compilation error