Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is the output of the given code?
if(a==10 && b=9)
print “true”
else
print “false”
end

What is the output of the given code?
if(a==10 && b=9)
print “true”
else
print “false”
end
a) True
b) False
c) Error
d) None of the mentioned

Answer: c
Explanation: We are assigning the value to the variable b which is not correct.
Output:
warning: found = in conditional, should be ==

Join The Discussion