How to clear the console output screen in C

1 Answer

0 votes
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv) 
{ 
    printf("Have a nice day");
    
    system("cls"); // "clc" work on windows
    
    return(0);
}

/*
run:

Press any key to continue...

*/

 



answered Jun 11, 2015 by avibootz
...