I am Just a begineer in C Programming. While solving a programming assignement I came across the need to convert an array of unsigned char to integer.
For Example:
unsigned char x[]="567";
unsigned char y[]="94";
Now I have to add the integer values in both x and y. That is:
int sum=661;
What is the simplest way to do this?
You’re looking for
atoi().