Machine-translated by Google. Questions are authored in English.
Top

Discussion

Initial seed is ________ for the function srand(unsigned int seed).

  • A.1
  • B.00
  • C.01

Answer: A

Correct answer: 1

If srand is never called, rand behaves as though srand(1) had been - the initial seed is 1. That is why an unseeded program produces the same sequence every time it runs.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.