Q. What is the output of the following code snippet?
Code:
int main() {
int sum = 2 + 4 / 2 + 6 * 2;
printf("%d", sum);
return 0;
}
β
Correct Answer: (C)
16
int main() {
int sum = 2 + 4 / 2 + 6 * 2;
printf("%d", sum);
return 0;
}
You must be Logged in to update hint/solution