Podcast
Questions and Answers
Which symbol is used to show that a data element is an array in C?
Which symbol is used to show that a data element is an array in C?
- ( )
- < >
- { }
- [ ] (correct)
What is the syntax to declare and create an array in C?
What is the syntax to declare and create an array in C?
- dataType arrayName[arraySize]; (correct)
- arrayName = [dataType] arraySize;
- arraySize = dataType[arrayName];
- arrayName[dataType] = arraySize;
In C, from which index do the indices of arrays start?
In C, from which index do the indices of arrays start?
- Depends on the array size
- 1
- 0 (correct)
- -1
What is the correct way to initialize an array of 4 integers: 43, -9, 19, 33 in C?
What is the correct way to initialize an array of 4 integers: 43, -9, 19, 33 in C?
What is the statement to initialize all elements of an array of size 10 to 0 in C?
What is the statement to initialize all elements of an array of size 10 to 0 in C?