SyntaxFix
Write A Post
Hire A Developer
Questions
I use :
int convertToInt(char a[1000]){ int i = 0; int num = 0; while (a[i] != 0) { num = (a[i] - '0') + (num * 10); i++; } return num;; }