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

Please derive the formula for the area of a circle.

0 Answers  


What is the difference between "type testing" and "product qualification"?

0 Answers  


what is the difference between verification and validation

0 Answers   Sonata,


Let an denote the number of bit strings of length n that do not have two consecutive zeroes. Find a recurrence relation for the number of bit strings of length n that do not have two consecutive zeroes. Hence find a4.

0 Answers  


A sheet of paper has statements numbered from 1 to 30. For all values of n from 1 to 30, statement n says "At most n of the statements on this sheet are false". Which statements are true and which are false? a) All statements are true. b) All statements are false. c) The odd numbered statements are true and the even numbered are false. d) The even numbered statements are true and the odd numbered are false.

7 Answers   TCS,






what are the advantages as disadvantages of the V-model?

0 Answers  


main() { int y=10; if(y++>9 && y++!=10 && y++>10) { printf("%d",y); else printf("%d",y); } }

4 Answers   Wipro,


WHAT IS CEASER II PIPING Stands For?

2 Answers  


Tell me about your parents?? Pls share any one best words...

0 Answers   HGS, Hinduja,


briefly explain about your project? please tell me about this answer . my current project is ERP domain web based application.please please help me

0 Answers   IBM,


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

1 Answers  


i want to know how can i divide the bandwidth among two computers.say i have a connection of 256 kbps dsl connection. i have a switch.now i want to divide this 256 kbps in two 128,128 equal connections.so that both of us can work on our separate 128 speed

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)