Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work?
Answer Posted / shruti
i think, the result exceeds the long int value..
the result is 10 and 6 0s..
and it exceeds the value for the long in
long int is 4 bytes..
the highest value is 65524 (m not very sure.. this could be
one of the reasons)..
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are the advantages of the functions?
Is register a keyword in c?
how to count no of words,characters,lines in a paragraph.
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Why do we use & in c?
What is meant by int main ()?
What is masking?
How do you use a 'Local Block'?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Is file a keyword in c?
Explain what is wrong with this statement? Myname = ?robin?;
Is it possible to initialize a variable at the time it was declared?
What is void pointers in c?
What is meant by high-order and low-order bytes?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above