<AptiCode/>

Question 566: To print outaandbgiven below, which of the followingprintf()statement will you use?#include<stdio.h> float a=3.14; double b=3.14;

tcs
wipro
infosys
general
aptitude
input-output
c-programming

To print a float value,%fis used as format specifier.To print a double value,%lfis used as format specifier.Therefore, the answer isprintf("%f %lf", a, b);