converting C code into command line executable
I thought this question's best category would be in the newbie section.
Basically I have a C code, (for simplicity is only prints a few lines), called printx.c that I would like to convert into a binary file so whenever I have to type "printx" in the command line it would execute the program
ofcourse gcc will give me a binary file if I do a "gcc printx.c", but even the output file (e.g. print.out) would have to be executed in the following manner
I only ask, because I notice programs like mailx (which is written in C) is a binary file that could be run in this manner (at least that's what I notice on my ubuntu distro)