Question from the Language C - Fundamentals test

Print the 4th element of an array in C

Archived

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: Vincent CotroStatus: Archived(New question!)Question passed 177 times
1
Community EvaluationsNo one has reviewed this question yet, be the first!