fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. char* byte1 = "1111111";
  6. int binary1 = atoi(byte1);
  7.  
  8. printf("%d", binary1);
  9.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
1111111