Q. Find out the correct output of the following given piece of code from the given options:

Code:
functionfun()  
{  
int y=10;  
char z=10;  
if(y.tostring()===z)  
returntrue;  
else  
returnfalse;  
}  
  • (A) logical error
  • (B) false
  • (C) runtime error
  • (D) true
πŸ’¬ Discuss
βœ… Correct Answer: (D) true

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
240
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Durgesh
Publisher
πŸ“ˆ
98%
Success Rate