Beruflich Dokumente
Kultur Dokumente
17. Error Correction: Direction :18 -20. Find out the o/p of the
/*To print 1 to 100 and 100 to 0*/ snippets.
#define callagain main() #define TOGGLE(x) x=!x
int main(){ typedef int Boolean;
int i=1; Boolean function(unsigned n)
if(i<=100){ { Boolean flag=0;
printf(%d,i++); while(n) {
callagain; if(n&ox1)
} TOGGLE(flag);
printf(%d,i); } n>>=1;
}
return flag; }