Top

Discussion

How do you initialize an array in C?

  • A.int arr[3] = (1,2,3);
  • B.int arr(3) = {1,2,3};
  • C.int arr[3] = {1,2,3};
  • D.int arr(3) = (1,2,3);

Answer: C

This is the syntax to initialize an array in C.

No comment is present. Be the first to comment.
Loading…

Post your comment