i want to start a program in turbo c after first program but when i write second proram and execute it, it also shows output of previous program
what to do..?
The console stdout of a C program imitates a 1968 computer's console typewriter where the paper is fed from a roll and just scrolls out. That is why there is no erase console capability in C.
You have to write that yourself or it may be you can use some non-standard method of making a system call. Here you might be able to call system() and provide a argument to execute on the console command line. You would need to research this for your compiler and operating system.
Comment