1.

Which among the given function does not return a value?(a) strtoul()(b) strtol()(c) rand()(d) srand()The question was asked in semester exam.My question is taken from General Utilities in division C Library of C

Answer»

Right OPTION is (d) srand()

EXPLANATION: void srand(unsigned int seed);

The srand() function uses argument as a seed for a new SEQUENCE of pseudo-random numbers to be RETURNED by subsequent calls to rand(). The srand() function RETURNS no value.



Discussion

No Comment Found

Related InterviewSolutions