Find the fallacy in the following program segment?

int a;
short b;
b=a;



Find the fallacy in the following program segment? int a; short b; b=a; ..

Answer / aman

b=a; is the error line.
possible high value of a can cause an error in b.
data value will go out of limit.
range of int is more than short type.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More Engineering AllOther Interview Questions

what is difference between class and object in c++

0 Answers  


why only j2me is used for mobile???

0 Answers  


Please send me Sample papers National Informatics Centre (NIC) Programmer. I am giving this paper first time..so if any one have previous question papers send to manoj200.yadav@gmail.com. thnx in advance

0 Answers   NIC,


I want old SBI question papers plzzzzzzzzz

0 Answers  


Give the coding for system reboot in C

0 Answers  


give me some knowledge about automation on which asked on interview

0 Answers  


i have studied my Btech up to 5years, is any problem with duration of the year.if the us embassy interviewer ask me why you have got 5 years to complete your btech,can you please give me answer.And i got less percentage.

1 Answers   US Consulate,


what size shaft is required to transmit 100 hp @1000 RPM ,if max shear stress is 10,000 PSI,angle of twist must be less than 1' /ft/shaft is made of steel.

0 Answers  


i am studying mechanical third year.. i like to do one year marine bridge course.. my question is . is there good oppourtunites for us (mecanical eng)? and tell about the salary

1 Answers  


Do you have any tips for using 3G phones?

0 Answers  


How does Earthquake-proofing work?

0 Answers  


What is RIA course certification.? which is the best institute for ria courses in bangalore ?

1 Answers   Infosys,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • 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)