Ken H

Ken H

  • NA
  • 646
  • 361.1k

the string to extract digits and save to integer array in C

Jul 13 2013 4:29 AM
Hello Brother,
     
      how to  the string to extract digits and save to integer array in C.
It looks as shown below:
int digits[100]; // Assuming allows 100 sets of figures
input:a54df12jlk264jo5erqa504df45

digits[0]=54;
digits[1]=12;
digits[2]=264;
digits[3]=5;
digits[4]=504;
digits[5]=45;


Regards,

Ken





Answers (2)