fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char string1[10] = "1234";
  5. char string2[10] = "1234";
  6. int int1 = atoi(string1);
  7. int int2 = atoi(string2);
  8. int intResult = int1 + int2;
  9. printf("%d", intResult);
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
2468