RRB Junior Engineer / DMS / CMA 2019 · Question 3602 of 3719
The correct option is (4) Explanation: To scan a double value, %If is used as the format specifier. To scan a float value, %f is used as a format specifier. Therefore, the scanf() statement is correct to read is, scanf("%lf%f",x,y); Key Points In C programming, scanf() is one of the commonly used functions to take input from the user. The scanf() function reads formatted input from the standard input such as keyboards. The simplest application of scanf looks like this: scanf ("%d", &b); Double has 2x more precision than float. Float is a 32 bit IEEE 754 single- precision floating-point number. The term floating point is derived from the fact that there is no fixed number of digits before and after the decimal point; that is, the decimal point can float. Scanf() function is used to read character, string, numeric data from the keyboard.
Source: RRB JE 2019 (CBT 2) (IT) Previous Year Paper (30 Aug 2019) — prepp.in solved-paper PDF (answer key with explanations) · reliable-secondary
Practice the full RRB Junior Engineer / DMS / CMA 2019 paper
Timed test with all 3719 questions, just like the real exam.
Start test