DEV Community

Discussion on: Daily Challenge #1 - String Peeler

Collapse
 
willsmart profile image
willsmart

Seat of your pants GNU C

printf(“String: %s”, s);
printf(“ trin : %s”, ({s[strlen(s)-1]=0;s+1;}));

(untested, also a bad idea in multiple ways)