Question
n = 1;
printf("%d, %dn", 3*n, n++);
a.
Output will be 3, 2
b.
Output will be 3, 1
c.
Output will be 6, 1
d.
Output is compiler dependent
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Comment on the following statement? n = 1; printf("%d, %dn", 3*n, n++);
Similar Questions
Discover Related MCQs
Q. Which of the following option is the correct representation of the following code?
e = a * b + c / d * f;
View solution
Q. What care must be taken during swapping 2 numbers?
b = (b / a);
a = a * b;
b = a / b;
View solution
Q. Which of the following is the correct order of evaluation for the given expression?
a = w % x / y * z;
View solution
Q. Which function in the following expression will be called first?
a = func3(6) - func2(4, 5) / func1(1, 2, 3);
View solution
Q. Which of the following operator has the highest precedence in the following?
View solution
Q. Which of the following is a ternary operator?
View solution
Q. Which of the following are unary operators?
View solution
Q. Where in C the order of precedence of operators do not exist?
View solution
Q. Associativity of an operator are:
View solution
Q. Which of the following method are accepted for assignment?
View solution
Q. Which of the following is NOT possible with any 2 operators in C?
View solution
Q. Which of the following is possible with any 2 operators in C?
View solution
Q. Which of the following operators has the lowest precedence?
View solution
Q. Which of the following operator takes only integer operands?
View solution
Q. In an expression involving || operator, evaluation
I. Will be stopped if one of its components evaluates to false
II. Will be stopped if one of its components evaluates to true
III. Takes place from right to left
IV. Takes place from left to right
View solution
Q. In C programming language, which of the following type of operators have the highest precedence
View solution
Q. Which of the following comments about the ++ operator are correct?
View solution
Q. Which operator has the lowest priority?
View solution
Q. Which operator from the following has the lowest priority?
View solution
Q. Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!