[ create a new paste ] login | about

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

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

int main() {
  const char* errorMessage = "Foobar exception";
  int lineNo = 123;

  printf("%1$s at %2$d\n", errorMessage, lineNo);
  printf("(%2$d): %1$s\n", errorMessage, lineNo);

  return 0;
}


Output:
1
2
Foobar exception at 123
(123): Foobar exception


Create a new paste based on this one


Comments: