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


Please Help Members By Posting Answers For Below Questions

What is the deal on sprintf_s return value?

1189


What is #define?

1195


What is the difference between array and structure in c?

1246


How can I recover the file name given an open stream or file descriptor?

1142


What does c value mean?

1262


What is the difference between fread and fwrite function?

1133


Why can’t we compare structures?

1327


Can a void pointer point to a function?

1082


What is an array? What the different types of arrays in c?

1256


List some applications of c programming language?

1000


What is variable initialization and why is it important?

1342


Write a program to check whether a number is prime or not using c?

1109


What is meant by gets in c?

1267


Explain what is the concatenation operator?

1233


What are predefined functions in c?

1157