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
}



Find the error in the following program struct point {struct point *next; int data; } x; main() {i..

Answer / bob

q=x; x=x->next; freelist(q);

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More STL Interview Questions

write a program that input four digit no and finds it is palindrome or not

2 Answers  


What is Template Specialization?

1 Answers   Lucent,


a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

0 Answers  


What are the different types of stl containers?

0 Answers  


Give the output of the following program main() {int ret; ret=fork();ret=fork();ret=fork();ret=fork(); if(!ret) printf("sun"); else printf("solaris");

8 Answers   Sun Microsystems,






Is stl open source?

0 Answers  


Why should a c++ programmer be interested in stl?

0 Answers  


tell about sorted linked list

1 Answers  


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

0 Answers  


Write a program in C/C++ to implement reader- writer problem

1 Answers   Wipro,


When did c++ add stl?

0 Answers  


Give two integer arrays A & B.A has n elements and B has ' n-1 ' elements . A has all the elements that are there in B. But B has one missing element. Write a function that takes arrays , A & B as imnput and finds the missing element in most optised manner .

4 Answers   Zycus Infotech,


Categories