Find the fallacy in the following program segment?

int a;
short b;
b=a;

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why it is a preferable option in parallelextender development ?

1552


how i run the assembly language code

1370


HELLO EVERYONE ON YAHOO , I'M IN NIGERIA AND I Will LIKE TO MOVE AND WORK IN CANADA , ANY SKILLED WORK IS OK BY ME AND THE PERSON WILL PAY THE BILL FOR IT, I WILL SERVE THE PERSON FOR THE EXPENSES.......... LOVE TO READ FROM YOU SOONEST AS YOU WISH TO HELP ME OUT

1438


can u tell me placement peoceduers and placemnt format of hpcl.

1471


why need of new operator in java why not in c++

1423






PLZ SOMEONE TELL ME WHICH TYPE OF QUESTIONS IS ASKED IN HLL(Hindustan latex ltd.)mangmt trainee entrance exam?

1521


i opt cse branch in engineering.which subject i have choose in civil service preliminary examination

1519


What are the fundamental differences between Engineering and Physics?

593


What is the meaning of "co relation" and what is the value of "co relation" in the performance testing environment.

1554


draw the diagram of double earthing

1606


The old welding machine use electro- -magnetic winding to step up the current for welding rods,what is new principle inside the welding

1033


plz send me interview questions & answers of Data Structure

1609


how can read number 1 to 100,without use anyloop.

1276


while installing jad file to mobile its giving processing attribute MDlet-jar-URL error...how to fix it

1664


I have Job A and Job B in jcl. I want to trigger Job B from Job A. Please advise.

1531