M
Q. What will be the output of the following code snippet?
Code:
#include <stdio.h>
void solve() {
printf("%d ", 9 / 2);
printf("%f", 9.0 / 2);
}
int main() {
solve();
return 0;
}
void solve() {
printf("%d ", 9 / 2);
printf("%f", 9.0 / 2);
}
int main() {
solve();
return 0;
}
- Correct Answer - Option(A)
- Views: 173
- Filed under category C Programming
Discusssion
Login to discuss.