Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language converts numeric strings into integers. If the input numeric string 1234 is converted into a long integer 1234.
C language converts numeric strings into integers. If the input numeric string 1234 is converted into a long integer 1234.
put for(I = len- 1; I < = 0; I-) changed to for (I = len-1; I & gt=0; I-).

Let x+= n * p [I]; Change it to x+= n * (p [I]-'0'); .

It is best to put GETS (s); Change to scanf("%s ",s); .