Question from the Language C - Fundamentals test

Print the 4th element of an array in C

Easy

What is the output of the following C code?

#include <stdio.h>

int main() {
  int arr[5] = {1, 2, 3, 4, 5};
  printf("%d", arr[3]);
  return 0;
}
Author: Delightful ZebraStatus: Published(Update)Question passed 10 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!