How can you determine the size of an array in C?
- By counting the number of elements
- By using the 'size' function
- Using the 'length' keyword
- Using the 'sizeof' operator
You can determine the size of an array in C by using the 'sizeof' operator. It returns the size in bytes, so dividing it by the size of one element gives you the number of elements in the array.
Loading...