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
Related Questions on MySQL Miscellaneous
How is communication established with MySQL?
A. SQL
B. Network calls
C. A programming language like C++
D. APIs
Which type of database management system is MySQL?
A. Object-oriented
B. Hierarchical
C. Relational
D. Network
Join The Discussion