Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What happens if we execute the following code?
int arr[3] = {1, 2, 3};printf("%d", arr[3]);
Compilation error
Undefined behavior
The program prints 3
A program will crash with segmentation fault error
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!