Advertisements
Advertisements
प्रश्न
Given p = 6.9;
Data type of p can be
विकल्प
int
float
long
short
MCQ
Advertisements
उत्तर
float
Explanation:
- The value p = 6.9 contains a decimal point, so it requires a floating-point data type.
- A float is used to store decimal values, while int, long, and short store only whole numbers.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1: Revision of Class 9 Syllabus - Exercises [पृष्ठ ४२]
