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
What is extern keyword in c?
Are the variables argc and argv are always local to main?
What is the difference between break and continue?
What is double pointer?
What are the main characteristics of c language describe the structure of ac program?
What is a char in c?
where are auto variables stored? What are the characteristics of an auto variable?
What are header files? What are their uses?
I need testPalindrome and removeSpace
#include
Explain enumerated types in c language?
Is exit(status) truly equivalent to returning the same status from main?
provide an example of the Group by clause, when would you use this clause
How does #define work?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is #line in c?