Question PRG-C-0031
EasyWhat is the output of this program?
#include <stdio.h>
int main() {
float f = 7 / 2;
printf("%.1f", f);
return 0;
}
- A.
4.0
- B.
3
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
What is the output of this program?
#include <stdio.h>
int main() {
float f = 7 / 2;
printf("%.1f", f);
return 0;
}
4.0
3
Sign up free to see the answer and a step-by-step explanation.
3.0
3.5