Examveda

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

A. -e

B. -o

C. -a

D. -b

Answer: Option B

Solution (By Examveda Team)

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

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous