## why result of (double + int) is 0 (C language)

result ofprintf("%d/n", 5.0 + 2);is 0butis 7What's the difference between the two?The result of 5.0 + 2 is 7.0 and is of type double.

## Can i type cast a long type 1d array element into int?

how could we fix the error without making the long type array to int. is there any way to do so?You have a couple of problems with your code:

## what's the point using unsigned int in C?

I thought that unsigned int could store only integers >= 0. But I tried assigning a negative to an unsigned int, nothing special happened. It seems like it stored the value with no problem.

## How can I convert from a bool to an int?

My code looks like this:Is there a way I could get this down to one line by somehow converting the bool Settings.adp into an int (0 or 1)

## If a String containing a number bigger than Integer.MAX_VALUE

I want to find if given String "99999999999999999999999999" or any massive number which would not fit in any datatype.I would like to find if that number is bigger than Integer.MAX_VALUE

## Convert double to int array

I have a double I want to convert this to a int arrayI came up with thisIt's working but I don't like this solution because I think a lot of conversions between datatypes can lead to errors. Is my code even complete or do I need to check for something...

## Java – Convert double to int array

I have a double I want to convert this to a int arrayI came up with thisIt's working but I don't like this solution because I think a lot of conversions between datatypes can lead to errors. Is my code even complete or do I need to check for something...

## why using int64_t gives wrong result while double works as expected for simple integer multiplications

here is my code :this printswhich is wrong answer but if i change integer type to double that will print 1.37847e+11 which is the correct answer,my question is why using int64_t gives me incorrect answer