Skip to main content
Golfing suggestion.
Source Link
Jonathan Frech
  • 7.3k
  • 1
  • 22
  • 44

C (gcc), 67 5656 55 bytes

m;x(char*_){for(m=1;*_++;m*=10)*_*=*_!=47;m=m==atoi*_*=*_^47;m=m==atoi(_);}

Try it online!Try it online!

C (gcc), 67 56 bytes

m;x(char*_){for(m=1;*_++;m*=10)*_*=*_!=47;m=m==atoi(_);}

Try it online!

C (gcc), 67 56 55 bytes

m;x(char*_){for(m=1;*_++;m*=10)*_*=*_^47;m=m==atoi(_);}

Try it online!

Golfing suggestion.
Source Link
Jonathan Frech
  • 7.3k
  • 1
  • 22
  • 44

C (gcc), 6767 56 bytes

fm;x(r,a,cchar*_)char*a,*r;{for(c=1,a=r;*a++;c*=10m=1;*_++;m*=10)*a*=*a*_*=*_!=47;c=atoi=47;m=m==atoi(a_)==c;;}

Try it online!Try it online!

C (gcc), 67 bytes

f(r,a,c)char*a,*r;{for(c=1,a=r;*a++;c*=10)*a*=*a!=47;c=atoi(a)==c;}

Try it online!

C (gcc), 67 56 bytes

m;x(char*_){for(m=1;*_++;m*=10)*_*=*_!=47;m=m==atoi(_);}

Try it online!

Source Link
Jonathan Frech
  • 7.3k
  • 1
  • 22
  • 44

C (gcc), 67 bytes

f(r,a,c)char*a,*r;{for(c=1,a=r;*a++;c*=10)*a*=*a!=47;c=atoi(a)==c;}

Try it online!