Because clrscr()is a library function which is used to clear the garbages and output from console.