nabilarizwan0987 nabilarizwan0987
  • 23-11-2022
  • Computers and Technology
contestada

Which of the following statements generates a random number between 0 and 50?

Choices;

a. srand(time(0));

num = rand() % 50;

b. srand(time(0));

num = rand()50;

c. srand(time(10));

num = rand() % 50;

d. srand(time(10));

num = rand()/50;

Respuesta :

Otras preguntas

What is the relationship between 1's in 911,147,835
what is the definition of a change in position or size?
Each liter of air has a mass of 1.80 grams. How many liters of air are contained in 2.5x10 to the third power kg of air?
A firm owned by a single person who shares profits and losses with no one else is a __________.
The expression 3xn can be written without the mulitiplication sign as 3n. For each expression in parts (a)-(c), use n= 1,2,3,...10 to evaluate the expression.
greg bought 2 boxes of balloons. he used half of them to decorate his yard. He used 40 to decorate his porch. He used the rest inside his house. how many balloo
In which of the following regions did General MacArthur lead American forces in World War II? a. Korean front b. European front c. Pacific front
402 rounded to nearest hundred
What is the answer to 15 (6-g)
How do you divide 28 cans of soda into two groups so the ratio is 3:4