/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include #define NUM 10 void test3() { int i=0; float ary[NUM]; while(i0 || j==0) { printf("i=%d j=%d\n",i,j); i--;j--; } printf("i=%d j=%d\n",i,j); } void test1() { int i; for(i=0;i<4;i++) { if(((i==1)&&(2==2))||(2==3)) { printf("true\n"); } else { printf("false\n"); } if(((i==2)&&(2==2))||(2==3)) { printf("true\n"); } else { printf("false\n"); } if(((i==2)&&(2==2))||(3==3)) { printf("true\n"); } else { printf("false\n"); } } } int main() { test3(); test1(); test2(); return 0; }