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
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is an auto keyword in c?
What is c language and why we use it?
How do you view the path?
What are header files and explain what are its uses in c programming?
What are the 5 elements of structure?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is the difference between int main and void main in c?
What are pragmas and what are they good for?
explain what is a newline escape sequence?
Why is it usually a bad idea to use gets()? Suggest a workaround.
write a program to find out prime number using sieve case?
State two uses of pointers in C?
hi any body pls give me company name interview conduct "c" language only
How do you list files in a directory?