A
Q. What will be the output of the following code snippet?
Code:
#include <stdio.h>
void solve() {
int a = 3;
int res = a++ + ++a + a++ + ++a;
printf("%d", res);
}
int main() {
solve();
return 0;
}
void solve() {
int a = 3;
int res = a++ + ++a + a++ + ++a;
printf("%d", res);
}
int main() {
solve();
return 0;
}
- Correct Answer - Option(C)
- Views: 13
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.