Computer Science, asked by azan95, 4 months ago

Variable Price has been assigned the value 7.5. The data type of the value assigned to Price is ______________
a) float
b) text
c)int
d)string

Answers

Answered by Meghnasoni8
1

Answer:

b is the correct answer.

Explanation:

hope it helps you

Answered by dreamrob
1

Answer:

Variable Price has been assigned the value 7.5. The data type of the value assigned to Price is float.

So, option (a) float is correct.

Common data types:

Integer (int) : 1234567

Floating point (float) : 234.34

Character (char) : 'c'

String : "Good Morning!!"

Boolean (bool) : true , false

Data type in C/C++

Primary:

  • Integer
  • Character
  • Boolean
  • Floating Point
  • Double Floating Point
  • Void
  • Wide Character

Derived:

  • Function
  • Array
  • Pointer
  • Reference

User-Defined:

  • Class
  • Structure
  • Union
  • Enum
  • Typedef
Similar questions