How do I print to the printer from a Turbo C program?

Turbo C uses a FILE pointer (stdprn) defined in the STDIO.H
    file. You do not need to open stdprn before using it:

    #include <stdio.h>
    main()
    {
        fprintf(stdprn, "Hello, world\n");
    }

    Note that if your printer is line-buffered, the output is

    flushed only after a '\n' is sent.


Learn More :