Given: What is the result?
A.
Area is 6.0
B.
Area is 3.0
C.
Compilation fails at line n1
D.
Compilation fails at line n2.
Given: What is the result?
A.
Area is 6.0
B.
Area is 3.0
C.
Compilation fails at line n1
D.
Compilation fails at line n2.
d
Definitely D.
D bcz Local variables are not initialized before use.
Answer: D
output:
Uncompilable source code – variable p might not have been initialized
d