Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work?
Answer Posted / thirupathi reddy katkoori
Integer range exceeds if multiply both the variables the resultant value does not to store it. Due to exceeding the int range only we have to declare it as long int and the value is store in c
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between null pointer and void pointer.
How is pointer initialized in c?
How many levels of pointers can you have?
What is the default value of local and global variables in c?
What are pointers? Why are they used?
What is the difference between near, far and huge pointers?
What is anagram in c?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Why is c not oop?
What is difference between structure and union?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is difference between stdio h and conio h?
Is fortran still used in 2018?
How do you override a defined macro?
Why doesn't C support function overloading?