Home / MCQ Bank / Computer
Computer Miscellaneous On Data Structures

Predict the output of the following code. #include <stdlib.h> int main() { srand(0); printf("%d\n", rand()%50); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • random number between 0 to 49 (both inclusive)

Related Computer Questions

What will be the result of compiling and running the following code: public class Test{ public static void main(String... args) throws Exception{ Integer i = 34; int l = 34; if(i.equals(l)){ System.out.println("true"); }else{ System.out.println("false"); } } } The code that should be adequate for present and anticipated data processing both for machine and human use is Thesaurus tool in MS Word is used for____________? Which key is used to insert new worksheet in excel? What is the space complexity of the Knuth-Morris-Pratt (KMP) algorithm?