Printf() and Scanf() are predefined function of the stdio.h file. And unless you declare and define a function, you cannot call it or in short you have to include header file.
Above explanation was applicable for any standard C compiler and these days C compiler also gone through many transformation for good and my C compiler does not give error if you dont include stdio.h (assuming it may be including internally)