C Programming and Technical Programming Program

In C, if you pass an array as an argument to a function, what actually gets passed?

Options
1) Value of elements in array
2) First element of the array
3) Base address of the array
4) Address of the last element of array

Read Solution (Total 21)

C Other Question

What will the function rewind() do?

Options
1) Reposition the file pointer to a character reverse.
2) Reposition the file pointer stream to end of file.
3) Reposition the file pointer to begining of that line.
4) Reposition the file pointer to begining of file.
What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

Options
1) The element will be set to 0.
2) The compiler would report an error.
3) The program may crash if some important data gets overwritten.
4) The array size would appropriately grow.