[ create a new paste ] login | about

Link: http://codepad.org/XcrIuGRJ    [ raw code | output | fork ]

C, pasted on Dec 4:
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

#define new
#define string(ARG) (ARG)
typedef char string;

int main(void) {
  string *test = new string("foobar");
  printf("%s\n", test);
  return 0;
}


Output:
1
foobar


Create a new paste based on this one


Comments: