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 experience do you have in RMA?s (returned material authorizations?)

0 Answers  


How do aeroplanes fly? Why can some fly up-side down?

0 Answers  


Is it VB.NET support operator overloading?

3 Answers   Zylog,


Sir, I was recently placed at ITC Infotect. My ctc is 2.46lpa. How much will I get in hand every month? Plssss answer. Thanx in advance.

0 Answers   ITC Infotech,


what is compiler

0 Answers  






any one can help me to know the top mnc companies and their working platforms?i mean java,php...

0 Answers  


1.orders for a computer are summarized by the additional features and are requested as follows; Proportion of order No features 0.3 One feature only 0.5 More than one feature 0.2 find; 1. what is the probability that an order requests at least one feature? 2. what is the probability that an order does not request more than one feature?

0 Answers  


What is your Job Profile in IT feild.

0 Answers  


to which generation of prog. languages does ai prog languages belong

0 Answers   Intel,


describe how your code can determine if the user entered an input box value or click the cancel button?

0 Answers  


what is D- channel ?

1 Answers   ZTE,


sir, i am khalidh iam preparing for the examinations of Hpcl information systems officers for that iam having a guidence for the written exam.So provide me a test apptitude papers and subject related questions.

0 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)