+ 3

What is the fullmeaning of ...'int' ??

12th Feb 2018, 11:04 AM
S M Rakibul Alam
S M Rakibul Alam - avatar
5 Answers
+ 6
int = integer stores whole numbers
12th Feb 2018, 1:21 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 4
integer
12th Feb 2018, 11:11 AM
abdurrahman al-amoudi
abdurrahman al-amoudi - avatar
+ 3
Integer, a built-in type, represents a whole number value. Define integer using the keyword int. C++ requires that you specify the type and the identifier for each variable defined. An identifier is a name for a variable, function, class, module, or any other user-defined item. An identifier starts with a letter (A-Z or a-z) or an underscore (_), followed by additional letters, underscores, and digits (0 to 9).
12th Feb 2018, 11:11 AM
abdurrahman al-amoudi
abdurrahman al-amoudi - avatar
0
By your tags, I assume you're confused by the int in "int main()". That species that it returns an integer. Hence the "return 0;" at the end. If you return a nonzero value, it tells the operating system/the program that started it, that it had errors. So for example, if you attempt to open a file, but you can't, you would rite "return 1;"
12th Feb 2018, 12:53 PM
Vlad Serbu
Vlad Serbu - avatar
- 1
The bit size depends on language. In C# itā€™s 32 bit. In C++ its 16 bits if i remember right.
12th Feb 2018, 11:21 AM
Toni Isotalo
Toni Isotalo - avatar