Q. What will the following code snippet work? If not, what will be the error?
Code:function test(p)
{
for (; p.next; p = p.next) ;
return p;
}
β
Correct Answer: (D)
Yes, this will work
function test(p)
{
for (; p.next; p = p.next) ;
return p;
}
You must be Logged in to update hint/solution