Top "Int" questions

Common datatype in many programming languages for representing a whole number.

How to check that a string is an int, but not a double, etc.?

PHP has an intval() function that will convert a string to an integer. However I want to check that the …

php string casting types int
convert from long long to int and the other way back in c++

How to convert from long long to int and the other way back in c++ ?? also what are the properties …

c++ casting int long-integer
Read integers separated with whitespace into int[] array

I read line with BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader.readLine(); Example input is 1 4 6 32 5 What is the …

java arrays int inputstream
Checking the "boolean" result of an "int" type

I'm learning Java, coming from C and I found an interesting difference between languages with the boolean type. In C …

java boolean int logical-operators
c++ uint , unsigned int , int

Hi I have a program that deals alot with vectors and indexes of the elements of these vectors, and I …

c++ indexing int iterator unsigned
Integer division in Java

This feels like a stupid question, but I can't find the answer anywhere in the Java documentation. If I declare …

java math int division
Char into byte? (Java)

How come this happens: char a = '\uffff'; //Highest value that char can take - 65535 byte b = (byte)a; //Casting …

java char byte int primitive-types
Warning: cast to/from pointer from/to integer of different size

I'm learning Pthreads. My code executes the way I want it to, I'm able to use it. But it gives …

gcc int void-pointers gcc-warning
How do I convert from an integer to a string?

I am unable to compile code that converts a type from an integer to a string. I'm running an example …

string int type-conversion rust
How to prevent arithmetic overflow error when using SUM on INT column?

I am using SQL Server 2008 R2 and I have an INT column where the data inserted never surpasses the max …

sql-server-2008-r2 int sum overflow arithmeticexception