Podcast
Questions and Answers
How do you access elements of an array in C?
How do you access elements of an array in C?
- By using pointers
- By using parentheses
- By using indices (correct)
- By using keys
Can the size and type of an array be changed once it is declared in C?
Can the size and type of an array be changed once it is declared in C?
- Yes, both the size and type can be changed
- No, both the size and type of an array cannot be changed (correct)
- Yes, the size can be changed but not the type
- Yes, the type can be changed but not the size
How can you initialize an array during declaration in C?
How can you initialize an array during declaration in C?
- By using the 'set' keyword
- By using the 'initialize' keyword
- By using the 'array' keyword
- By specifying the elements inside curly braces (correct)
How do you change the value of array elements in C?
How do you change the value of array elements in C?
How can you access elements out of the bound of an array in C?
How can you access elements out of the bound of an array in C?
Flashcards are hidden until you start studying