Knowee
Questions
Features
Study Tools

C-Facts: The core part of Linux operating system was completely developed in C language.The instructions (called the source code) written in C are saved in a file with .c extension. For eg: Calculator.c. This is the source file.There is a special program called compiler, which is used to compile the source file. Once compiled, an object file with extension .obj is created.There is yet another program called linker, which combines one or more object files to create a single executable file. The executable file can have any extension. For example, files in Windows usually have .exe extension. These files are executed to get the desired output.Click on Live Demo to learn the steps involved in writing and executing a C program. Live DemoSelect all the correct statements from the given statements:Compiler uses the C source file and generates a file with .obj extension.In C the source code is written and saved in a file with .h extension.The file with .obj extension contains machine code.Linking is done after the compilation process is completed.

Question

C-Facts: The core part of Linux operating system was completely developed in C language.The instructions (called the source code) written in C are saved in a file with .c extension. For eg: Calculator.c. This is the source file.There is a special program called compiler, which is used to compile the source file. Once compiled, an object file with extension .obj is created.There is yet another program called linker, which combines one or more object files to create a single executable file. The executable file can have any extension. For example, files in Windows usually have .exe extension. These files are executed to get the desired output.Click on Live Demo to learn the steps involved in writing and executing a C program. Live DemoSelect all the correct statements from the given statements:Compiler uses the C source file and generates a file with .obj extension.In C the source code is written and saved in a file with .h extension.The file with .obj extension contains machine code.Linking is done after the compilation process is completed.

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

The correct statements from the given text are:

  1. Compiler uses the C source file and generates a file with .obj extension.
  2. The file with .obj extension contains machine code.
  3. Linking is done after the compilation process is completed.

The statement "In C the source code is written and saved in a file with .h extension" is incorrect. In C, the source code is typically written and saved in a file with a .c extension, not .h. The .h extension is usually used for header files in C.

This problem has been solved

Similar Questions

What are the different steps to form an executable file from C source code?

What are the different steps to form an executable file from C source code?Preprocessing, compilation, assembly, and linkingInterpretation, assembly and compilationInterpretation, compilation and assemblyCompilation and linkingPreprocessing and compilation

In Linux, the source code of a program can be downloaded and, after compiling with the compiler, can be run on the Linux machine.TrueFalse

The C source file is processed by

C language was primarily developed as a system programming language for which operating system?

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.