Q. What will be the value of x in the following code snippet?
Code:#include <stdio.h>
void solve() {
int x = printf("Hello");
printf(" %d", x);
}
int main() {
solve();
return 0;
}
β
Correct Answer: (B)
5