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
}

Answer Posted / bob

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

647


how to use C++?

2067


Name the different types of stl containers.

695


Can we use stl in coding interviews?

1284


What is the stl, standard template library?

600






Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

1896


How do you convert stl to steps?

635


how to making game in c++ ?

2183


How does an stl file work?

656


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

1648


What is a list in c++ stl?

696


What two types of containers does the stl provide?

573


What are the symptoms of stl?

609


What is stl stand for?

742


What is stl language?

682