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 / 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


Please Help Members By Posting Answers For Below Questions

exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

1116


What is the auto keyword good for?

1148


Who invented b language?

1408


What is 'bus error'?

1146


Explain is it better to bitshift a value than to multiply by 2?

1200


What is a header file?

1078


What is a char in c?

995


How do you determine the length of a string value that was stored in a variable?

1121


What is function in c with example?

1154


What is the role of this pointer?

1070


Explain how can type-insensitive macros be created?

995


In a byte, what is the maximum decimal number that you can accommodate?

1140


differentiate built-in functions and user – defined functions.

1084


What is masking?

1151


How do c compilers work?

1130