FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which variable data type is used to store a whole number that does not contain a decimal?
A
String
B
Integer
C
Floating point
D
Boolean
Explanation: 

Detailed explanation-1: -1. Integer Data Type. An integer type variable can store zero, positive, and negative values without any decimal. In C language, the integer data type is represented by the ‘int’ keyword, and it can be both signed or unsigned.

Detailed explanation-2: -The INTEGER data type stores whole numbers that range from-2, 147, 483, 647 to 2, 147, 483, 647 for 9 or 10 digits of precision.

Detailed explanation-3: -Integers are numbers without decimal points.

Detailed explanation-4: -Integer types stores whole numbers, positive or negative, without decimals.-byte, short, int and long.

There is 1 question to complete.