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
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What is the auto keyword good for?
Who invented b language?
What is 'bus error'?
Explain is it better to bitshift a value than to multiply by 2?
What is a header file?
What is a char in c?
How do you determine the length of a string value that was stored in a variable?
What is function in c with example?
What is the role of this pointer?
Explain how can type-insensitive macros be created?
In a byte, what is the maximum decimal number that you can accommodate?
differentiate built-in functions and user – defined functions.
What is masking?
How do c compilers work?