In the bubble sort algorithm, given an array named array and the variable that holds the subscript is named index, the two arguments sent into the swap module are __________.

a. array[index] and array[index - 1]
b. array[index +1 ] and array[index - 1]
c. array[index - 1] and array[index + 1]
d. array[index] and array[index + 1]

d. array[index] and array[index + 1]

Computer Science & Information Technology

You might also like to view...

Texturizer is an example of an artistic effect that can be applied to a picture

Indicate whether the statement is true or false

Computer Science & Information Technology

Give three uses for the * operator. Name and describe each use.

What will be an ideal response?

Computer Science & Information Technology