fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. sscanf(" 42", "%2d", &n);
  6. printf("n = %d\n", n);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
n = 42