Question: for ( i = 0 ; i < codeStr.length ( ) ; + + i ) { if ( isdigit ( codeStr [ i ]

"for(i =0; i < codeStr.length(); ++i){
if(isdigit(codeStr[i])){
codeStr[i]='1';
}
}" my script turns anything that is already numbers into the number 1 instead of things that arent numbers. what can I do to change it so it gets the desired output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!