What is int ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is int ?

14th Sep 2017, 12:59 AM
The Othon
The Othon - avatar
2 Answers
+ 20
Int is short for "integer." Int is a fundamental variable type built into the compiler and used to define numeric variables holding whole numbers. C, C++, C# and many other programming languages recognize int as a type. such as #include <iostream> using namespace std; int main() { int a = 30; int b = 12; int sum = a + b; cout << sum; return 0; }
14th Sep 2017, 1:50 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 6
int is short for integer 1 is an int 2 is an int 23 is an int to research : it is that number which in binary is stored without much ado i.e. it is stored as it is, compare to float storage
14th Sep 2017, 2:41 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar