[ create a new paste ] login | about

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

slevy1ster - C, pasted on May 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <string.h>

int main(void) {
  int n = strlen("");
 
  int res = '\0' == (char) 0;
  printf("\n%d",res);
  res = "" == (char) 0;
  printf("\n%d",res);
  res = "" == 0;
  printf("\n%d",res);
  printf("\n%d", 0 == !1);
  printf("\n%d", "" == !1);
  printf("\n%d", 0 == '\0');
  printf("\n%d", 0 == "");
  return 0;
}


Output:
1
2
3
4
5
6
7
8

1
0
0
1
0
1
0


Create a new paste based on this one


Comments: