Which function returns a pseudo-random integer?

Lê Như Ý

New member
Which function returns a pseudo-random integer?
A. srand()
B. rand()
C. malloc()
D. alloc()
 
Answer: b
Explanation: int rand (void) ;
The rand() function is used to compute a sequence of pseudo-random integers in the range 0 to RAND-MAX. The rand function returns a pseudo-random integer.
 

Tìm kiếm

Back
Top