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 is diff b/w TON and BTU for Air conditioner?

0 Answers  


searching a B-tree indexed tree compared to B+ tree is slow..True or false

0 Answers   NIC,


5S training documents

0 Answers   Texas,


what is domain functional level in windows server 2003?

0 Answers   pspl,


why multiple inheritence concept is not supported in c#?

0 Answers  






how do we calculate physical address if logical address is given in the question?

0 Answers   TCS,


how can i install windows-xp operating system in single time to 50 computersconnected in a LAN.

0 Answers   Bank Of America,


write a program to print only the largest number between elements of an 1-d array?

1 Answers  


what should i say in the interview if interviewer asks me "why did you choose IT instead of your core group?"

0 Answers  


where is the first engeenering college of Asia

0 Answers  


what is 3d gard

0 Answers   HP,


What are saw filters used for?

1 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • 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)