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

what is compiler?

4 Answers   NASA,


sir please send me bpcl previous question papers

0 Answers   BPCL Bharat Petroleum,


To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command

0 Answers  


please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html

0 Answers  


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

2 Answers  






what is a template?

2 Answers   Amazon, BITS, IBS, Wipro,


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

0 Answers   Ascent,


What is Object Oriental Progam

2 Answers  


What are stl algorithms?

0 Answers  


how to making game in c++ ?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

0 Answers  


Waht is inheritance

6 Answers  


Categories