GCC Compiler Question:
Download Questions PDF

What is the job of -Werror option in gcc?
a) it avoids all the errors present in the source code
b) it makes all warnings into errors
c) it stores all the errors of source code into a seperate file
d) none of the mentioned

Answer:

b) it makes all warnings into errors

Download Linux GCC Compiler Interview Questions And Answers PDF

Previous QuestionNext Question
The -fPIC option of gcc:
a) generates the position independent code of shared libraries
b) opens the source file in readonly mode
c) both (a) and (b)
d) none of the mentioned
Which option of the gcc is used to warn is padding is included in structure?
a) -Wpadded
b) -Wpad
c) -Wpadding
d) none of the mentioned