fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. const char *s = "20";
  6.  
  7. int n;
  8. sscanf(s, "%x", &n);
  9. printf("%d", n);
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 5516KB
stdin
Standard input is empty
stdout
32