bd601e45c3
Fixed test case 50. git-svn-id: http://picoc.googlecode.com/svn/trunk@545 21eae674-98b7-11dd-bd71-f92a316d2d60
28 lines
503 B
C
28 lines
503 B
C
#include <stdio.h>
|
|
|
|
int fred()
|
|
{
|
|
printf("fred\n");
|
|
return 0;
|
|
}
|
|
|
|
int joe()
|
|
{
|
|
printf("joe\n");
|
|
return 1;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
printf("%d\n", fred() && joe());
|
|
printf("%d\n", fred() || joe());
|
|
printf("%d\n", joe() && fred());
|
|
printf("%d\n", joe() || fred());
|
|
printf("%d\n", fred() && (1 + joe()));
|
|
printf("%d\n", fred() || (0 + joe()));
|
|
printf("%d\n", joe() && (0 + fred()));
|
|
printf("%d\n", joe() || (1 + fred()));
|
|
|
|
return 0;
|
|
}
|