2010-06-13 07:58:52 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2009-03-08 20:49:01 -04:00
|
|
|
int a = 1;
|
|
|
|
|
|
|
|
if (a)
|
|
|
|
printf("a is true\n");
|
|
|
|
else
|
|
|
|
printf("a is false\n");
|
|
|
|
|
|
|
|
int b = 0;
|
|
|
|
if (b)
|
|
|
|
printf("b is true\n");
|
|
|
|
else
|
|
|
|
printf("b is false\n");
|
|
|
|
|
2015-06-14 18:27:41 -04:00
|
|
|
int *c = 0;
|
|
|
|
if (c)
|
|
|
|
printf("c is true\n");
|
|
|
|
else
|
|
|
|
printf("c is false\n");
|
|
|
|
if (!c)
|
|
|
|
printf("c is true\n");
|
|
|
|
else
|
|
|
|
printf("c is false\n");
|
|
|
|
c = &b;
|
|
|
|
if (c)
|
|
|
|
printf("c is true\n");
|
|
|
|
else
|
|
|
|
printf("c is false\n");
|
|
|
|
if (!c)
|
|
|
|
printf("c is true\n");
|
|
|
|
else
|
|
|
|
printf("c is false\n");
|
2010-07-27 12:20:09 -04:00
|
|
|
|
|
|
|
void main() {}
|