PsSheba
February 6th, 2005, 10:59 AM
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"
int main()
{
char myInts[3] = {'0','2','\0'};
int myChars = myInts;
return 0;
}
surely int myChars = myInts; is an error but is there a function that can make the convertion ?
Thanks !
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"
int main()
{
char myInts[3] = {'0','2','\0'};
int myChars = myInts;
return 0;
}
surely int myChars = myInts; is an error but is there a function that can make the convertion ?
Thanks !