Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 the Difference between CArray and CList?

1 Answers   ProdEx Technologies, Siemens,


What Is Operator Overloading in C++?

3 Answers  


what's the difference between function overloading and function overiding?

5 Answers  


Write a program in C++ to concatenate two strings into third string using pointers

5 Answers  


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

0 Answers   Appin, NIIT,


5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3

1 Answers  


How the STL's are implemented, What the difference between templates and STL?

1 Answers   Symphony,


What two types of containers does the stl provide?

0 Answers  


what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?

2 Answers  


sir please send me bpcl previous question papers

0 Answers   BPCL Bharat Petroleum,


#define CUBE(x) (x*x*x) main() { int a,b=3; a=cube(b++); printf("%d %d",a,b); } What should be the value of a and b? My calc a=4 but syst a=6 how pls tell me if you know it?

12 Answers   Wipro,


Can we use stl in coding interviews?

0 Answers  


Categories