You can write, compile and execute C-programs in both DOS and Unix, if that's what you meant.
The C language has implementations for all popular platforms, including Unix.
Unix was created first. The C programming language was created for Unix.
UNIX was programmed in C.
Because Linux is "sort-of-a-copy-of-Unix" (which is not), and Unix was written in C. C was created to write Unix. Most portable operating systems or serious embedded devices are written in some incarnation of C and C++. Including MS-DOS and earlier copies of Window$ (which I am sure still uses it)
Unix is primarily written in the C language, with some small snippets of assembler code for low level bootstraps.
The C programming language was originally created for Unix. Unix, and most other Unix-like systems such as Linux, are written almost entirely in C.
C. Schirmer has written: 'Programming in C for UNIX' -- subject(s): C (Computer program language), UNIX (Computer file)
The Unix operating system. The first versions of the Unix operating system were written in the "B" language, and later written in "C", which was invented in order to develop Unix on the PDP-11 machine.
Unix was rewritten in the C Programming language and not in assembly language. The migration from assembly language to the higher-level language C resulted in much more portable software, requiring only a relatively small amount of machine-dependent code to be replaced when porting Unix to other computing platforms. (mihir)
\x0a in unix, \x0d\x0a in Win/Dos
its UNIX I think :)
Access the hardware directly: possible in DOS, not possible in Windows.