27.0k views
3 votes
What is the executable file named if we compile using the following line? gcc celsius.c -o Celsius

a. celsius.c
b. celsius
c. Celsius d.

1 Answer

3 votes

Final answer:

The gcc command with the '-o' option defines the output executable's name. For the given command 'gcc celsius.c -o Celsius', the compiled executable will be named 'Celsius'.

Step-by-step explanation:

When compiling a program using the gcc (GNU Compiler Collection) command-line tool, the "-o" option specifies the output file name for the compiled executable. In this case, the command gcc celsius.c -o Celsius will compile celsius.c and produce an executable file named Celsius. Therefore, the correct answer to what the executable file will be named is option c. Celsius.

User Bosen
by
8.1k points