Which of the following C++ statements displays a random number in the range 1 through 10?

a)
cout << 1 + rand() % 10;

b)
cout << 1 + rand() % (10 -1 + 1);

c)
cout << 1 + rand() % 10 -1 + 1;

d)
first and second answers are correct

e)
all of the above