Knowee
Questions
Features
Study Tools

What is the gcc option that runs only the preprocessor?-P-a-E-cisfun-preprocessor-p-pedantic

Question

What is the gcc option that runs only the preprocessor?-P-a-E-cisfun-preprocessor-p-pedantic

🧐 Not the exact question you are looking for?Go ask a question

Solution

The GCC option that runs only the preprocessor is -E. This option tells GCC to stop after the preprocessing stage and output the result. The preprocessed code is sent to the standard output or to the file specified with -o. The other options you mentioned have different uses.

Similar Questions

Which is not a preprocessor directive of C-language?

The C-preprocessors are specified with _________ symbol.

Question #0Why should we use include guards in our header files?To avoid the problem of double inclusion when dealing with the include directive.Because we said so, and we should never ask why.Question #1What is the gcc option that runs only the preprocessor?-cisfun-preprocessor-E-p-pedantic-P-aQuestion #2The preprocessor links our code with libraries.FalseTrueQuestion #3This code will try to allocate 1024 bytes in the heap:#define BUFFER_SIZE 1024malloc(BUFFER_SIZE)FalseTrueQuestion #4This is the correct way to define the macro SUB:#define SUB(a, b) a - bNo, it should be written this way:#define SUB(a, b) ((a) - (b))No, it should be written this way:#define SUB(a, b) (a) - (b)No, it should be written this way:#define SUB(a, b) (a - b)YesQuestion #5What will be the last 5 lines of the output of the command gcc -E on this code?#include <stdlib.h>int main(void){ NULL; return (EXIT_SUCCESS);}int main(void){ '\0'; return (0);}int main(void){ ((void *)0); return (0);}int main(){ 0; return (0);}int main(void){ 0; return (0);}Question #6What will be the output of this program? (on a standard 64 bits, Linux machine)#include <stdio.h>#include <stdlib.h>#define int charint main(void){ int i; i = 5; printf ("sizeof(i) = %lu", sizeof(i)); return (EXIT_SUCCESS);}sizeof(i) = 4sizeof(i) = 1sizeof(i) = 8sizeof(i) = 5It does not compileSegmentation FaultQuestion #7NULL is a macroFalseTrueQuestion #8The preprocessor removes all commentsFalseTrueQuestion #9The preprocessor generates object codeFalseTrueQuestion #10The preprocessor generates assembly codeFalseTrueQuestion #11What are the steps of compilation?preprocessor 2.compiler 3. linker 4. assemblerpreprocessor 2.compiler 3. assembler 4. linkercompiler 2. preprocessor 3. assembler 4. linkerQuestion #12The macro __FILE__ expands to the name of the current input file, in the form of a C string constant.FalseTrueQuestion #13What does the macro TABLESIZE expand to?#define BUFSIZE 1020#define TABLESIZE BUFSIZE#undef BUFSIZE#define BUFSIZE 37nothing371020Question #14This portion of code is actually using the library stdlib.#include <stdlib.h>FalseTrueSubmit answers

C preprocessors can have compiler specific features.Question 7Answera.Trueb.False

what is Preprocessors and Preprocessors directives.

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.