clrscr()
didn't get deprecated because it was never part of any standard. It was a vendor-specific function provided as an extension by Borland in the (also non-standard) <conio.h>
header. Modern compilers no longer provide this function.Conio.h
header is not a part of C Standard Libary. According to wikipedia:clrscr()
function in any of the headers that hare available for it.clrscr()
will not work untill you download & link conio.o in your project.Download conio.h , conio.o & then copy paste conio.h in include folder & conio.o in lib folder.Link conio.o in your project (Project->Project option->Parameters->Add Library or Object) ..Then run it.