Definitely to use '0' gives portability
Thanks,...
User Profile
Collapse
-
num = num * 10 + s[i] -'0';
This is what same as n = n*base + *str-48 of my code, then what was the prob?
becoz of pointer? or because of ascii value of 0 which is 48?Leave a comment:
-
following code is working
Code removed, please read posting guidelines...Leave a comment:
No activity results to display
Show More
Leave a comment: