Consider the following problem:
first:
#include
void main()
{
char ch='\48';
printf("%c\n",ch);
}
//Why the above code output is 8?
second:
#include
void main()
{
char *s="\ta\018bc";
for(;*s!='\0';s++) printf("*");
}
//Why the above code output is 6 *?
thank very much.


VulpesRank #55 · 29.2K reputationPosted Mar 12, 2012, 4:06 AM EDT