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

in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

8047


What functions are used for dynamic memory allocation in c language?

1153


Explain output of printf("Hello World"-'A'+'B'); ?

1496


What do you mean by Recursion Function?

1124


Explain about the constants which help in debugging?

1379


If errno contains a nonzero number, is there an error?

1375


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1113


What are preprocessor directives in c?

1102


int i=10; printf("%d %d %d", i, i=20, i);

1620


What is the difference between break and continue?

1525


Why c is faster than c++?

1032


What are c preprocessors?

1187


Is fortran still used today?

1093


Is there any data type in c with variable size?

1099


Describe how arrays can be passed to a user defined function

1295