Determine if the following statements have errors. If so, highlight them and explain why.
(a) int2nd_value=10;
(b) int double = 20.008
(c) String d = 3.1; [1]
Answers
Answered by
0
1) there shud be some space between datatype & variable name.
2) double can't be used as an identifier as it is a keyword.
3)while declaring a floating pt. value we must have datatype float
2) double can't be used as an identifier as it is a keyword.
3)while declaring a floating pt. value we must have datatype float
Similar questions
Political Science,
8 months ago
Physics,
8 months ago
Math,
8 months ago
Biology,
1 year ago
Math,
1 year ago
Environmental Sciences,
1 year ago
English,
1 year ago