[ create a new paste ] login | about

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

C, pasted on Sep 23:
1
2
3
4
5
6
7
8
9
int main(void) {
  int x = 0;
  int* p = &x;
  char* q = p;
  while (*p == *q) { //What happens here?
     x = x + 1;
  }
  printf("%d\n", x);
}


Output:
1
2
3
128

Exited: ExitFailure 4


Create a new paste based on this one


Comments: