Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 To scan a and b given below, which of the following scanf() statement will you use? #include float a; double b; ?->(Show Answer!)
1. To scan a and b given below, which of the following scanf() statement will you use? #include float a; double b;
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.01 pm
To scan a float value, %f is used as format specifier. To scan a double value, %lf is used as format specifier. Therefore, the answer is scanf("%f %lf", &a, &b);