M
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;
}
void solve() {
int x = printf("Hello");
printf(" %d", x);
}
int main() {
solve();
return 0;
}
- Correct Answer - Option(B)
- Views: 188
- Filed under category C Programming
Discusssion
Login to discuss.