This is the sample code of my program, in which i've to add two string type integer (ex: "23568" and "23674")
. So, i was trying with single char
addition.
char first ='2';
char second ='1';
i was trying like this..
i=((int)first)+((int)second);
printf("%d",i);
and i'm getting output 99, because, it's adding the ASCII value of both. Anyone please suggest me, what should be the approach to add the char type number in C.