Q. What will be the output of the following code snippet?

Code:
#include <stdio.h>
#define VAL 3 * (2 + 6)
void solve() {
    int a = 10 + VAL;
    printf("%d", a);
}
int main() {
	solve();
	return 0;
}
  • (A) 104
  • (B) 24
  • (C) 10
  • (D) 34
πŸ’¬ Discuss
βœ… Correct Answer: (D) 34

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
210
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
85%
Success Rate