Tag Archives: assignment
c assignment doubt
Q. Arrange 10 strings in ASCII Collating Sequence. What does this question mean…?
c assignment doubt
#include char input[]=”SSSWILTECH1\1\11W\WALLMP1″; int main() { int i,c; for(i=2;(c=input[i])!=”;i++) { switch(c) { case ‘a’:putchar(‘i’);continue; case ’1′:break; case 1:while((c=input[++i])!=’\1′&&c!=”); case 9:putchar(‘S’); case’E’: case’L’:continue; default:putchar(c);continue; } putchar(‘ ‘); } return 0; } the output of this program is “SWITCH S” i know … Continue reading