fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. char linea[30]={"110111010111111000000000"};
  5. long num=strtol(linea,NULL,0);
  6. printf("%s\n%X",linea,num);
  7. return 0;
  8. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
110111010111111000000000
7FFFFFFF