Podcast
Questions and Answers
Which part of a C++ program is considered the entry point of the program?
Which part of a C++ program is considered the entry point of the program?
- std cout:: <<
- int main () (correct)
- std::endl
- Return 0;
Which preprocessor directive tells the compiler to include the input/output stream (iostream) to the library?
Which preprocessor directive tells the compiler to include the input/output stream (iostream) to the library?
- #include <math.h>
- #include <iostream> (correct)
- #include <stdlib.h>
- #include <stdio.h>
What does the 'int' before the 'main' function indicate?
What does the 'int' before the 'main' function indicate?
- The function is called internally
- The function takes an integer as input
- The function is defined as an integer
- The function returns an integer value (correct)
What does an exit status of 0 indicate?
What does an exit status of 0 indicate?
What is the purpose of the 'iostream' library?
What is the purpose of the 'iostream' library?