What is the default value of seed if function rand() is called before srand()?
What is the default value of seed if function rand() is called before srand()? Correct Answer srand(1)
If srand() is not called before the call to the function rand() then the value of seed is taken as srand(1) by default. We should use srand() before rand() in order to use our own seed.
মোঃ আরিফুল ইসলাম
Feb 20, 2025