Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
char c = '5';
int a = c - '0'; // now a = 5
int a = 0;
char num[] = {'1' , '9' , '3' };
a = conv( num , 3 ); // now ans=193
.
.
.
int conv( char arr[] , char len )
{
int ans = 0;
char i;
for( i = 0 ; i < len; i++ )
{
ans *= 10;
ans += arr[i]-'0';
}
return ans;
}
te04-0202 said:How to convert ASCII characters into numeric values in KEIL COMPILER.
te04-0202 said:How to convert an integer into character.