Ask Question
16 July, 16:49

Which of the following statements Terminates the program andstops all threads?

a. Return (0);

b. Exit;

c. System. exit (1);

d. System. exit (0);

+3
Answers (1)
  1. 16 July, 18:46
    0
    (c) system. exist (1);

    Explanation:

    system. exist (1); is used for the termination of the program here both option c and d should be correct but in option d there is exit (0) and zero indicates return means program will return but besides zero if there is any non zero number then program will not return and in option c there is a non zero number which means program will not return so option c system. exist (1); will be the correct option for the termination of program
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following statements Terminates the program andstops all threads? a. Return (0); b. Exit; c. System. exit (1); d. System. exit ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers