♦ C++ int
♣ About C++ int
Integer Data Type as the name suggests stores integer values.For instances 7, 50, etc are integer values.
If any non-integer number is tried to be stored in Integer Variable, then the non-integer part will be truncated.
♣ Example1: Integer in C++
In this example, Integer Data Type scenarios are illustrated.Note that any non-Integer number get converted to Integer in this example.
Example
Input:
Output: