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?"

Answers were Sorted based on User's Feedback



Assume I have a linked list contains all of the alphabets from "A" to "Z?" I w..

Answer / bharghavi

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

Is This Answer Correct ?    6 Yes 0 No

Assume I have a linked list contains all of the alphabets from "A" to "Z?" I w..

Answer / tutum

by using find() function..u can find "Q"...
regards
tutum

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More STL Interview Questions

Who wrote stl?

0 Answers  


How is stl different from c++ standard library?

0 Answers  


what is compiler?

4 Answers   NASA,


What do stl stand for?

0 Answers  


What is the disadvantage of templates ?

2 Answers   NSN, Symphony,






What is the stl, standard template library?

0 Answers  


Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }

1 Answers   Sun Microsystems,


What is C++ could you enplane me please?

1 Answers  


how to use C++?

0 Answers   NIIT,


give me the defination of inheritance?

5 Answers   Infosys,


What is the STL?

2 Answers   Epson, HP,


What are the different types of stl containers?

0 Answers  


Categories