I have an character array (say char charr[5]) which contains 0/1 (char array of boolean number). Now, I want to convert the character array to 64 bit integer number (if array is {0, 0, 0, 1 , 0}, it will give 2 ). How to do that ? Is there any library functions ?
Share
No, there’s no standard function for that. But it’s pretty trivial: