Macros(Engineering > Computer Science And Engineering > C++ Language ) Questions and Answers
Explanation:-
Answer: Option C. -> #define #define
Explanation:-
Answer: Option A. -> # #
Explanation:-
Answer: Option B. -> 2 There are two types of macros. They are object-like and function-like.
Explanation:-
Answer: Option B. -> #include For a c++ program to execute, we need #include.
Explanation:-
Answer: Option A. -> 100.01 In this program, we are getting the minimum number using conditional operator.
Explanation:-
Answer: Option B. -> Details about your file In this program, we are using the macros to print the information about the file.
Explanation:-
Answer: Option D. -> none of the mentioned In this program, as we haven't initiailzed the variable x, we will get a output of ending digit of 4.
Explanation:-
Answer: Option A. -> 10 In this program, we are just printing the declared values.
Explanation:-
Answer: Option C. -> compile time error Macro Preprocessor only replaces occurance of macro symbol with macro symbol value, So we can't increment the value.
Explanation:-
Answer: Option A. -> scripted directive When the compiler encounters a previously defined macro, it will take the result from that execution itself.