Assume I have a linked list contains all of the alphabets
from "A" to "Z?" I want to find the letter "Q" in the list,
how does you perform the search to find the "Q?"

Answer Posted / bharghavi

for(currnode=head;currnode!=null;currnode=currnode->next)
{
if(currnode->data=='Q')
cout<<"element found";
}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various types of stl containers?

739


What is stl in oop?

684


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1897


totoo po ba ang manga aliens!

2343


What are the symptoms of stl?

609






In what scenario does the Logical file and Physical file being used?

2328


Define stl.

780


sir please send me bpcl previous question papers

1961


Is stl open source?

638


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

2866


What is a stl vector?

628


What are the components of stl?

628


Who created stl?

658


Name the different types of stl containers.

696


how to making game in c++ ?

2183