Programming in C
Set 2 — 10 Questions
1. What does a function's return type specify?
2. By default, how are arguments passed to a function in C?
3. How do you let a function modify the caller's original variable?
4. What is the index of the first element in a C array?
5. What is the time complexity of accessing an array element by index?
6. What marks the end of a string in C?
7. Which function returns the length of a string (excluding '\0')?
8. Which function compares two strings for equality?
9. What does a 2D array like int grid[3][3] represent?
10. What should you always pass along with an array to a function?