Computer Science, asked by shanmukasunny333, 9 months ago

What is the functionality of the following piece of code? Select the most
appropriate
int flag = 0;
f(head l= null)
Node temp = head.getNext();
while (templ= head) && (l(temp.getItem() == data)))
{
temp = temp.getNext();
flag = 1;
break;
2
)
if(flag)
System.out.println("success");
elsel
System.out.println("fail");
A
Print success if a particular element is not found
B
Print fall if a particular element is not found
C
Print success if a particular elementis equal to 1
D Print fall at the fint is empty​

Answers

Answered by StephenDeva
0

Answer:

Option A

Explanation:

Becz if condition use '!' sign.

Similar questions