C++ Basics and Compilation Flashcards
1
Q
How do strings in C++ differ from Java?
A
They are mutable and array-like.
2
Q
In what order is code compiled in c++?
A
Top to bottom, left to right.
3
Q
C++ Main
What does ‘argc’ stand for, and what does it contain?
A
Argument Count, and the number of elements in argv.
4
Q
C++ Main
What is the first element of argv?
A
The name_of_class.exe of the calling program
5
Q
c++ Main
What is the return type of int used for in main?
A
Error Codes
6
Q
C++ Main
What do negative return ints mean?
A
Something went catastrophically wrong.
7
Q
C++ Main
What does a return value of 1 from main signify?
A
Usage case