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
postfix expression for x^y^z-m+n+p/q ?
how to write regression test case?what is the difference between Client server & web based Testing? can we able to do UI Testing in web based Testing
How to select the total numbers of fire extinguisher installed in a room ?
what is the difference between VARCHAR and VARCHAR2?
i am going to give interview for the post of ibps po..so there is a question in my mind which is "Being an electonics and communication engineer how can you help in banks, I mean whats the application of your education in banking."
who is the judge in case of the auditor has raised an NCR against an auditee? who should decide weather this NCR is acceptable and the auditee has to accept?
y the range of char is between -128 to 127 only????
what is Networking?
How can we share data between actions in qtp..pls tell me
if u r using bugzilla then it generates automatic bugids,while testing uhave got a bug then bug is represented through a bug id say bug1, then bug is assigned to developer he fixes a bug ,say the bug is fixed no error is got later after few regression cycles u have got the same bug but the bug is represented by diff id say bug2,tell me how do i come to know that it is the same bug that had occured previously but now it is represented by diff id
why view is created in database
compare the conditional operator with if-else-if statement.
what is mean by oracle?And how it is used?
My system suddenly get off,when i try to power on then it does not work but when i open it and clean RAM and insert it again, it power on.but after some day same problem? please give the answer (i have also changed RAM it's new.)
what is the difference between public static void main (String args[]) and static public void main(String args[]) in java?