Programming MCQS - QUESTION DETAILS

What does the 'exit()' function do in C?
A. Close a file
B. Terminate the program
C. Return from a function
D. Print a message

'exit()' is used to terminate the program in C.

Similar Questions

What is the output of printf("%d", 5 + 3 * 2);?






How is a single-line comment written in C?






Which function is used to read a character from the standard input in C?






How is a preprocessor directive indicated in C?






What is the purpose of the 'do-while' loop in C?






What is the output of printf("%f", 10 / 3);?






What is the purpose of the 'sizeof' operator in C?






What is the purpose of the 'malloc' function in C?






How do you declare a global variable in C?






How do you declare a constant pointer in C?