filmov
tv
0x0D. C - Preprocessor Quiz Questions
Показать описание
Question #0
What is the gcc option that runs only the preprocessor?
Question #1
What will be the output of this program? (on a standard 64 bits, Linux machine)
Question #2
The preprocessor removes all comments
Question #3
This portion of code is actually using the library stdlib.
Question #4
The preprocessor links our code with libraries.
Question #5
This is the correct way to define the macro SUB:
Question #6
The preprocessor generates object code
Question #7
Why should we use include guards in our header files?
Because we said so, and we should never ask why.
To avoid the problem of double inclusion when dealing with the include directive.
Question #8
What will be the last 5 lines of the output of the command gcc -E on this code?
Question #9
This code will try to allocate 1024 bytes in the heap:
Question #10
The preprocessor generates assembly code
Question #11
The macro __FILE__ expands to the name of the current input file, in the form of a C string constant.
Question #12
What are the steps of compilation?
Question #13
Question #14
NULL is a macro
What is the gcc option that runs only the preprocessor?
Question #1
What will be the output of this program? (on a standard 64 bits, Linux machine)
Question #2
The preprocessor removes all comments
Question #3
This portion of code is actually using the library stdlib.
Question #4
The preprocessor links our code with libraries.
Question #5
This is the correct way to define the macro SUB:
Question #6
The preprocessor generates object code
Question #7
Why should we use include guards in our header files?
Because we said so, and we should never ask why.
To avoid the problem of double inclusion when dealing with the include directive.
Question #8
What will be the last 5 lines of the output of the command gcc -E on this code?
Question #9
This code will try to allocate 1024 bytes in the heap:
Question #10
The preprocessor generates assembly code
Question #11
The macro __FILE__ expands to the name of the current input file, in the form of a C string constant.
Question #12
What are the steps of compilation?
Question #13
Question #14
NULL is a macro