C++ Basics and Compilation Flashcards

1
Q

How do strings in C++ differ from Java?

A

They are mutable and array-like.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In what order is code compiled in c++?

A

Top to bottom, left to right.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

C++ Main

What does ‘argc’ stand for, and what does it contain?

A

Argument Count, and the number of elements in argv.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

C++ Main

What is the first element of argv?

A

The name_of_class.exe of the calling program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

c++ Main

What is the return type of int used for in main?

A

Error Codes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

C++ Main

What do negative return ints mean?

A

Something went catastrophically wrong.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

C++ Main

What does a return value of 1 from main signify?

A

Usage case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly