Examveda

The option for specifying the executable name while compiling with gcc is . . . . . . . .

A. -e

B. -o

C. -a

D. -b

Answer: Option B

Solution (By Examveda Team)

This question is about how you use the gcc compiler to create an executable file from your code.

The gcc compiler is a powerful tool for building programs in languages like C and C++. It takes your source code and transforms it into a file that your computer can understand and run.

The question asks which option you use with gcc to tell it what to name the executable file.

Here's a breakdown of the options:

Option A: -e This option isn't used for specifying the executable name.

Option B: -o This is the correct option! The -o option is used to specify the output filename, which is your executable file. For example, gcc -o myprogram myprogram.c would compile myprogram.c and create an executable file called myprogram.

Option C: -a This option isn't used for specifying the executable name.

Option D: -b This option isn't used for specifying the executable name.

So, the answer is Option B: -o

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous