A new one on me...

ORCUTT at cc.utah.edu ORCUTT at cc.utah.edu
Sun Dec 3 09:36:46 AEST 1989


I just tried the following code in Turbo C.  It outputs
"0" and gives no warning.

#include <stdio.h>             /* prototype of printf, for what it's worth */

int main()
  {
  printf("%d\n", '');          /* test null character constant */
  return (0);
  }

To answer an earlier question, Turbo C predefines the preprocessor
macro __TURBOC__ as 0x0200 after patch and as something else if
not patched.  It does not define the macro MSDOS.



More information about the Comp.lang.c mailing list