
Strings and Standard Functions II-167
char x[]="a1b2c3d4e5f6g7h8i9j0";
int t=0;
clrscr();
for(t=l;x[t]!=0 && t<=strlen(x);t+=2)
printf("%c",x[t]);
}
(a) 1234567890 (b) abcdefghij
(c) a1b2c3d4e5f6g7h8i9j0 (d) None of the above
35. What will be the output of the following program?
void main()
{
char txt[]="12345\0abcdef";
clrscr();
printf("%s",txt);
}
(a) 12345 (b) abcdef
(c) 12345\0abcdef (d) None of the above
36. String contains .
(a) Characters (b) Numbers
(c) Symbols (d) All of these
37. Every string has a termination character called as null denoted by .
(a) ‘/0’ (b) ‘\0’
(c) ‘0/’ (d) ‘0\’
38. String is a .
(a) One-D character array (b) Two-D character ...