Arrays & Strings Quiz

Complete this assessment with 100% score to master this chapter.

01In C, what is the 'Null Terminator' used for in strings?

02What happens if you try to access 'arr[10]' in an array declared as 'int arr[10]'?

03Which function is used to securely copy a string by limiting the number of characters copied?

04How are 2D arrays (e.g., matrix[row][col]) stored in memory in C?

05What is the difference between 'char arr[] = "hi"' and 'char *p = "hi"'?