填空题 以下程序的功能是:将无符号八进制数字构成的字符串转换为十进制整数。例如,输入的字符串为556,则输出十进制整数366。请填空。
   #include<stdio.h>
   main()
   {char*p,s[6];
       int n;
       p=s;
       gets(p);
       n=*p-'0';
       while( 1!='\0')
           n=n*8+*p-'0';
       printf("/%d\n",n);
   }
  • 1、
【正确答案】 1、*(++p)    
【答案解析】