Arrays in C (original) (raw)

Which of the following correctly declares an array of 10 integers in C?

Which of the following statements about arrays is TRUE in C?

What is the index of the first element in a C array?

What is the correct way to initialize all elements of an array to zero in C?

Which of the following is NOT a valid array declaration?

What is the value of arr[1] after the following declaration?

C `

int arr[3] = {10};

`

What is true about partially initialized arrays in C?

Which of the following allows you to iterate over a C array using a pointer?

What is the difference between int arr[5]; and int *arr = malloc(5 * sizeof(int));?

What happens if you use sizeof on a pointer to an array?

There are 19 questions to complete.

Take a part in the ongoing discussion