• edited by
23 views
0 0 votes

What is the output when the following segment of ' C exdecuted'

void main(){
float a = 123.456;
printf("%7.2f, %7.3f, %12e", a a a);
}
  1. $123.450,123.4560, 1.234560e+02$
  2. $123.46,123.456,1.234560e+02$
  3. $123.456000, 123.456, 0.1234560e+03$
  4. $123.45, 123.4560, 1.234560e+02$

Please log in or register to answer this question.

Answer:
Position:
Show:

Related questions

0 0 votes
0 0 answers
45
45 views
Shubham Sharma 2 asked Jun 28
45 views
Which of the following statements is TRUE?The cardinality ratio for a binary relationship specifies the maximum number of relationship instances that an entity can partic...
0 0 votes
0 0 answers
34
34 views
Shubham Sharma 2 asked Jun 28
34 views
Which of the following represents the function of a Multiplexer?$\mathrm{Y}=\mathrm{A}+\mathrm{B}$$\mathrm{Y}=\mathrm{A} \mid \mathrm{B}$$\mathrm{Y}=\mathrm{A} ~\& ~\text...
0 0 votes
0 0 answers
30
30 views
Shubham Sharma 2 asked Jun 28
30 views
The prefix equivalent of the following infix expression is:$a / b-c+d^{*} e-a ^{*}c$$-+-/ a b a^{*} d e^{*} a c$$+ / a b c^{*} d e^{*} a c$$-+/ a b c-^{*} d e^{*} a c$$ +...
0 0 votes
0 0 answers
33
33 views
Shubham Sharma 2 asked Jun 28
33 views
Which of the following file-type arguments is used in fopen $()$ library function to open a new file for both reading and writing, and destroys the file if a file with th...