ExamVeda
Login
Home
This question belongs to MySQL MySQL Miscellaneous
MySQL Miscellaneous
?

What is the option for specifying the executable name while compiling with gcc?

Answer & Solution
Correct Answer: Option B
This question asks about the command-line option used when compiling a program using the gcc compiler. The compiler takes your code and turns it into an executable file that your computer can run. The options we're looking at here control how this process works.

Option A: -e This option is not used to specify the executable name.
Option B: -o This is the correct option! The -o option is used to specify the output filename for the executable file. For example, if you want to compile a program called myprogram.c and save the executable as myprogram, you would use the command: gcc myprogram.c -o myprogram.
Option C: -a This option is not used for specifying the executable name.
Option D: -b This option is not used for specifying the executable name.

Therefore, the correct answer is Option B: -o
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.