Preprocessing directives are statements that begin with a # token. These statements are processed prior to compilation, thus the compiler never sees them (hence the term, preprocessed). Preprocessing primarily allows a translation unit (a source file) to include code from other files (header files), via the #include directive, as well as to conditionally compile code using the #ifdef, #ifndef, #else and #endif directives in conjunction with the #define directive.
The #define directive is also used to define macros. Macros may be assigned a value and wherever the symbol appears in your code, that symbol is replaced with the value by the preprocessor. Macros can also be used to define functions for inline expansion. However, because the compiler never sees the macro definition, it cannot help you debug them. They are not type safe and are best avoided whenever possible.
c language is the structure oriented language and c does not follows the object oriented paradigms . c++ obeys the all object oriented language characteristics ========== C++ is a set of extensions to the C language to allow some (not all) principles of object-oriented programming to be used. Originally, C++ was a front end pre-processor for C and C++ compilers will translate C language functions.
Processor faults are not related with a specific programming language.
Co-processor and pre-processor are two different thing. Pick one.
One of the statements, obviously.
The C programming language is generally made up of common conditional statements. Occasionally, unconditional statements such as test that are based on imperative commands.
first think of the logic and then write the statements
differance between control statement and looping statement?
A processor typically refers to the Central Processing Unit (CPU), however any device or software that processes an input to produce an out put is a processor. There are no processors in C++, it is a programming language, but you can use C++ to create one.
They are 'statements' to speak strictly, they are: , , if, else, while, for, do, return, switch, break, continue, gotoNote: is zero or more statements between '{' and '}'
Statements. Typical usage: if (<condition>) <statement>; else <statement>;
Unless your particular C implementation allows for direct writing of assembly code, you can't. C is a high-level language and you usually cannot directly issue instructions to the processor. The assembly languages are a set of architecture-specific commands that can be directly executed by a processor.
That depends on each individual compiler. Some are written in assembly, some in C/C++, others are written in whatever high-level language the author likes best.