In C, the base address of an array arr can be accessed using ________.
- &arr
- &arr[0]
- arr
- arr[0]
To access the base address of an array in C, you can simply use the array name without an index, which is equivalent to &arr[0]. So, both &arr and arr[0] provide the base address.
Loading...
Related Quiz
- The preprocessor directive ________ is used to include libraries in a C program.
- When dealing with large datasets, what is the advantage of using 'long long int' over 'int'?
- In a graphics program, you need to define colors where each color can be represented as either a name or an RGB triplet. How would you efficiently represent this in C?
- What function is used in C to allocate a block of memory for an array of elements, initialize them to zero, and then return a pointer to the memory?
- In optimizing a recursive algorithm for calculating Fibonacci numbers, what concept can be applied to avoid redundant calculations?