asked 175k views
0 votes
Of the following types, which one cannot store a numeric value?

A) int
B) double
C) char
D) float

1 Answer

4 votes

Final answer:

The type that cannot store a numeric value is char.

Step-by-step explanation:

Of the given options, the type that cannot store a numeric value is char.

Int, double, and float are all data types in programming languages that can store numeric values:

  • Int is used to store whole numbers.
  • Double is used to store floating-point numbers with decimal places.
  • Float is also used to store floating-point numbers, but with less precision than double.

On the other hand, char is used to store single characters, such as letters or symbols.

answered
User Zack Macomber
by
7.9k points