Advertisements
Advertisements
Question
Given below is a partial program code. Identify any error, if present. Also find the following in it:
[Class name, Object name, Array, member data, data type]
int p = 4.5;
Code Writing
Advertisements
Solution
double p = 4.5;
The data type of p is double
shaalaa.com
Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 66]
