1.

A conversion specification %7.4f means ____________(a) print a floating point value of maximum 7 digits where 4 digits are allotted for the digits after the decimal point(b) print a floating point value of maximum 4 digits where 7digits are allotted for the digits after the decimal point(c) print a floating point value of maximum 7 digits(d) print a floating point value of minimum 7 digits where 4 digits are allotted for the digits after the decimal pointI have been asked this question in an internship interview.My question is based upon printf in division Input and Output in C of C

Answer»

The CORRECT OPTION is (a) print a floating point VALUE of MAXIMUM 7 digits where 4 digits are allotted for the digits after the decimal point

The best EXPLANATION: The conversion specification %7.4f means that it will print floating point number maximum of 7 digits and 4 digits after the decimal point.



Discussion

No Comment Found

Related InterviewSolutions