Report Bug
Qus : What is the correct execution process of an Arduino code?
Qusअरुडिनो कोड की सही निष्पादन प्रक्रिया क्या है

A. Preprocessor->Editor->Compiler
B. Editor->Preprocessor->Compiler
C. Compiler->Preprocessor->Editor
D. Editor->Compiler->Preprocessor


Solution
B. Editor->Preprocessor->Compiler



Explanation

The correct order is:

Editor:

  • You use a text editor or an integrated development environment (IDE) to write your source code.

Preprocessor:

  • The preprocessor is a program that processes your source code before actual compilation.
  • It performs tasks such as handling preprocessor directives (e.g., #include, #define), file inclusion, and conditional compilation.

Compiler:

  • The compiler takes the preprocessed source code and translates it into assembly language or machine code.
  • It checks the code for syntax errors and generates an intermediate form of the program.



Report Bug