Hi !
I have a char array that contains digits such as {'0', '1'}. I want to convrt it to an int (1) like in the following code"
surelyCode:int main() { char myInts[3] = {'0','2','\0'}; int myChars = myInts; return 0; }is an error but is there a function that can make the convertion ?Code:int myChars = myInts;
Thanks !




Reply With Quote