C042Arrays and Strings • Array index
Most ImportantEasy
Q1.The index of the FIRST element of an array in C is:
A
1
B
0
Correct answer
C
-1
D
depends on compiler
Correct answers are highlighted in green
int a[5]; store?int a[5]; the valid index range is:int a[] = {1, 2, 3, 4}; have?int a[2][3]; store?for string functions like strlen() and strcpy()?strlen("HELLO") return?char name[] = "RAM"; contain?scanf("%s", str) stops reading the string when it reaches:int a[5][5]; is accessed as: