main()
{
float a=0.3;
printf("%d\n%f",a,a);
}

Answers were Sorted based on User's Feedback



main() { float a=0.3; printf("%d\n%f",a,a); }..

Answer / moorthy

0
0.300000

IN FIRST CASE, DECIMAL PART ARE TRUNCATED. SO THAT ANSWER
IS ZERO.

Is This Answer Correct ?    6 Yes 2 No

main() { float a=0.3; printf("%d\n%f",a,a); }..

Answer / vikram panda

0,0.000000

Is This Answer Correct ?    3 Yes 1 No

main() { float a=0.3; printf("%d\n%f",a,a); }..

Answer / sam

9208
0.000000

Is This Answer Correct ?    1 Yes 1 No

main() { float a=0.3; printf("%d\n%f",a,a); }..

Answer / kittu

JUNK VALUE
0.300000

Is This Answer Correct ?    0 Yes 3 No

main() { float a=0.3; printf("%d\n%f",a,a); }..

Answer / ravi kant sharma

Garbage Value
2.000000

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Engineering AllOther Interview Questions

What are the benefits of using interface accept multiple inheritance concept?

2 Answers   IBM,


WAP in Java to print the format A B A B C D E D E

0 Answers  


THREE IS EQUAL TO FOUR

2 Answers   InterSolution,


WHAT IS CEASER II PIPING Stands For?

2 Answers  


what is trx?

0 Answers   Enercon,






What is the win speed velocity of the swallow?

1 Answers  


What are the different types of testing? What is SDLC? Manual of automated?How to choose among these two?

0 Answers   Sinertel,


Hi i'm richa piplani applied for ATC(IT) if u have the syllabus & old question papers forward me.I will be very much thankful to you. piplani.richa@gmail.com and sonu_pips@yahoo.co.in

0 Answers  


What knowledge you have on MRP (material requirement planning) software? Quality tracking software?

0 Answers  


which type of casting enforces type safety

0 Answers  


What is meant by relay & co-ordination at substation engineering ?

0 Answers   Bureau Veritas,


when there is a parametrized constructor, and an object is created with no arguments. will the default constructor be called?

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5084)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16631)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1094)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)