C - Predefined Macros Flashcards

(11 cards)

1
Q

1

A

__LINE__ - Contains the current line number of the program during compilation

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

2

A

__FILE__ - Contains the current file name

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

3

A

__DATE__ - Contains the date at which the source code of a program is converted to object code

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

4

A

__TIME__ - Gives the time at which a program is compiled in hours:minutes:seconds

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

5

A

__STDC__ - Used to confirm the compiler standard. Generally holds the value 1, meaning that the compiler conforms to ISO Standard C.

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

6

A

__STDC_HOSTED__ - Holds the value 1 if the compiler’s target is a hosted environment, a facility in which a third-party holds the compilation data and runs the programs on its own computers. Generally, the value is set to 1.

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

7

A

__STDC_VERSION__ - This macro holds the C Standard’s version number in the form yyyymmL where yyyy and mm are the year and month of the Standard version. This signifies which version of the C Standard the compiler conforms to.

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

8

A

__cplusplus - Is defined when the C++ compiler is used. It is used to test whether a header is compiled by a C or C++ compiler.

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

9

A

__OBJC__ - Is defined when the Objective C compiler is used. It is used to test whether a header is compiled by a C or Objective C compiler.

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

10

A

__ASSEMBLER__ - Is defined with value 1 when preprocessing assembly language.

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

11

A

__func__ / __FUNCTION__ - Contains the name of the function that it is used in.

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