Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work?
Answer Posted / guest
You must manually cast one of the operands to (long).
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the deal on sprintf_s return value?
What is #define?
What is the difference between array and structure in c?
How can I recover the file name given an open stream or file descriptor?
What does c value mean?
What is the difference between fread and fwrite function?
Why can’t we compare structures?
Can a void pointer point to a function?
What is an array? What the different types of arrays in c?
List some applications of c programming language?
What is variable initialization and why is it important?
Write a program to check whether a number is prime or not using c?
What is meant by gets in c?
Explain what is the concatenation operator?
What are predefined functions in c?