Miscellaneous Company Exam
Company
Programming
Program
In which line of the following, an error would be reported?
1. #deflne CIRCUM(R) (3.14*R*R);
2. main()
3. {
4. float r=1.O,c;
5. c= CIRCUM(r);
6. printf(”n%f”,c);
7. if(CIRCUM(r))==6.28)
8. printf(”nGobbledygook”);
9. }
a) line 1 b) line 5 c) line 6 d) line 7
Read Solution (Total 1)
-
- error in line 7 because syntax is wrong the correct syntax is if(CIRCUM(r)==6.28)
so ans is d)line7 - 10 years agoHelpfull: Yes(2) No(0)
Miscellaneous Company Exam Other Question