Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the difference between null pointer and void pointer.

1030


How is pointer initialized in c?

975


How many levels of pointers can you have?

1134


What is the default value of local and global variables in c?

982


What are pointers? Why are they used?

1112


What is the difference between near, far and huge pointers?

1030


What is anagram in c?

870


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

1718


Why is c not oop?

928


What is difference between structure and union?

1078


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

3159


What is difference between stdio h and conio h?

1324


Is fortran still used in 2018?

985


How do you override a defined macro?

1208


Why doesn't C support function overloading?

2605