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

when did actually oil exploration start

0 Answers  


anyone send me aptitude and technical placement paper of Hewitt

0 Answers   Hewitt,


Full form of Abt Meter

2 Answers   ABB,


What is the relation between dB and change of signal?

1 Answers  


How to score well in examination of MCA(engg) december 2012? please reply soon........

0 Answers  






real time examples for basic concepts in oop

0 Answers   Wipro,


What is a superheterodyne receiver?

2 Answers  


explain overloaded constrator &copy constractor

0 Answers  


Difference between software process model and software process.?

0 Answers  


Create an midp application which examines that a phone number which has enters is in the given format * Area code should be one of the following:040,041,050,0400,044

0 Answers  


how to use two diffirent gatway in one system

0 Answers  


how to hack email id & passward

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4452)
  • 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)