Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work?
Answer Posted / larry
This won't work if int is a 16-bit size because 1000000 >
32767 (2 to the 15th - 1). It will work when int is a 32-
bit number. It will work if you cast a or b to a long.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Is stack a keyword in c?
i want to know the procedure of qualcomm for getting a job through offcampus
What is the use of ?: Operator?
Define Spanning-Tree Protocol (STP)
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
For what purpose null pointer used?
Describe static function with its usage?
What is the role of && operator in a program code?
When should a far pointer be used?
program to convert a integer to string in c language'
Does * p ++ increment p or what it points to?
What is an arrays?
Does c have function or method?
What are the different types of errors?