2004

Grusel++ of the month

Home
Download Source
/******************************************************************************/
/*                                                                            */
/*                                                                FILE: may.c */
/*                                                                            */
/*  The strange strings are trigraph sequences from the ANSI C standard       */
/*  ===================================================================       */
/*                                                                            */
/*  Compiled and tested with Visual C++ 6.0                                   */
/*                                                                            */
/*  V1.00   31-MAY-2004   P. Tellenbach   http://www.heimetli.ch/             */
/*                                                                            */
/******************************************************************************/

??=include <stdio.h>

int main()
??<
  int i ;

  for( i = 0; i < 14; i++ )
     putchar( "hELLO\0WORLD\0\1\52"??(i??) ??' ??- 0xFFDF ) ;

  return 0 ;
??>

Update 31. May 2024

This program compiles and runs, but the trigraph sequences were removed from the standard in C++ 17. g++ requires the option -trigraphs to compile the code.