Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Official C Challenge ①

Name: Anonymous 2010-07-18 12:23

Task:  Come up with an extension to the C programming language.  Provide a clear description of the extension, and a code sample that clearly shows what the extension is intended to do.

Prize:  (Winning criteria are not specified.)  The winner will have his extension featured in the C11 language standard.

My entry:  ... Sorry, I think C is perfect in every way already.

Name: Anonymous 2010-07-18 14:20

inline perl:
int main(void)
{ int a = 23, b = 19;
  int c = __perl($, $$, pop + pop)(a, b);
  char *s = __perl($, $$, pop + pop)(a, b);
  printf("%d + %d =\n"
         " int: %d\n"
         " string: %s\n",
         a, b, c, s);
  return 0; }


output:
23 + 19 =
 int: 42
 string: 42

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List