please help me in this code please remove all these errors because i did not remove these errors due to beginner in c

You must be joking, you are not mentioning what errors you are getting , what sort of an application this is (console or gui), what you have tried to solve those errors, ... in fact you have not even mentioned which compiler you are using !!!
And you expect us to solve those errors for you ????

I have seen this code before. It was written by Kanetkar in a book dedicated for the turbo c complier.


In my first glance I found these.
1) some of the codes are missing. ( initgrraph(), etc which will make a interrupt )
2) malloc returns a void pointer which needs to be type-casted.
3) stdlib.h, conio.h required.
4) no arguments for exit().
and more.
Besides, Why should you used such old compilers & its nonstandard libraries?

2) malloc returns a void pointer which needs to be type-casted.

In C programming, casting malloc it is asking for problems. Include the header file stdlib.h to avoid compiler warnings. Read more about it here.

commented: thanks for the correction +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.