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
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 |
Answer / tutum
by using find() function..u can find "Q"...
regards
tutum
| Is This Answer Correct ? | 2 Yes | 1 No |
What is the Difference between CArray and CList?
1 Answers ProdEx Technologies, Siemens,
What Is Operator Overloading in C++?
what's the difference between function overloading and function overiding?
Write a program in C++ to concatenate two strings into third string using pointers
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
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
How the STL's are implemented, What the difference between templates and STL?
What two types of containers does the stl provide?
what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
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?
Can we use stl in coding interviews?