A macro when takes arguments is called ______.
- Afunction
- Bprocedure
- Cparameterized macro
- Dsimple macro
A #define macro that takes arguments is a parameterized macro.
MCQs, short and long questions from lecture 23.Lecture 23 ki MCQs, short aur long sawal.
9 MCQs · 9 MCQs from past papers9 MCQs · 9 MCQs past papers se
A macro when takes arguments is called ______.
A #define macro that takes arguments is a parameterized macro.
Which of the following is NOT a preprocessor directive?
#ndefine does not exist; #error, #define and #line are valid directives.
If we define an identifier with the statement #define PI 3.1415926 then during the execution of the program the value of PI __________.
The preprocessor substitutes the constant text, so PI cannot change at run time.
All preprocessor directives are started with the symbol______.
Every preprocessor directive begins with #.
We can also do conditional compilation with preprocessor directives.
#if, #ifdef, #ifndef, #else and #endif provide conditional compilation.
Where we can include a header file in the program?
#include can appear anywhere, though it is normally placed at the top.
Which one is the correct syntax for defining an identifier PI with preprocessor directive?
A #define uses name and replacement text with no = and no semicolon.
In C/C++ the #include is called,
Lines starting with # are preprocessor directives.
Symbolic constant PI can be defined as:
#define takes the name and replacement text with no = and no semicolon.
No MCQs match this filter.Is filter mein koi MCQ nahi.
No short questions added yet.Abhi koi short sawal shamil nahi.
No long questions added yet.Abhi koi long sawal shamil nahi.