C Preprocessor(C Program ) Questions and Answers
Explanation:-
Answer: Option B. -> 64The macro call square(4) will be substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority and associativity left to right, so the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64.
Explanation:-
Answer: Option E. -> I, II, III and IVExplanation:-
Answer: Option E. -> Compiler Errormain.c: In function ‘main’:
main.c:5:12: error: lvalue required as increment operand
i = max++;
Explanation:-
Answer: Option C. -> 100Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs.The input program to compiler looks like this :
void main()
{
100;
printf("%d\n", 100);
}