M
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;
}
#define VAL 3 * (2 + 6)
void solve() {
int a = 10 + VAL;
printf("%d", a);
}
int main() {
solve();
return 0;
}
- Correct Answer - Option(D)
- Views: 110
- Filed under category C Programming
Discusssion
Login to discuss.