int x = character - '0';
int i = (int)(c - '0');
Use ASCII chart.
int i=65;
char ch;
ch= (char)i;
printf("Expected value of ch: A. This value is found by using a ASCII chart");
strcpy(str, "98993489");
val = atoi(str);
printf("String value = %s, Int value = %d
", str, val);
char c = '5';
int x = c - '0';
int i;
char c = 'A';
i = (int)c;
Code Example |
---|
C :: debian unhold packages |
C :: faire une facture en langage c |
C :: how to run c program from visual studio terminal |
C :: ecrire programme en C une fonction remplir tableau et un fonction inverser |
C :: iterate through enum in qt |
C :: search sorted array c |
C :: argparse allow line break |
C :: c memcpy |
C :: c extern |
C :: C program to find power of any number |
C :: rust set toolchain |
C :: function that changes all lowercase letters of a string to uppercase. |
C :: script in c |
C :: calling of a void in c |
C :: stack pop |
C :: *= operator |
C :: c sjf |
C :: fifo page algorithm in C |
C :: cocktail sort in c |
C :: <fileset joomla |
C :: How to declare a string? |
C :: creation of a thread |
C :: What keyword covers unhandled possibilities? |
C :: injection |
C :: switch every right 4 bit with the left 4 bits |
C :: arcpy buffer |
C :: manasa loves maths solution IN C |
C :: buildCheckFunction(locations) |
C :: function declaration in c |
C :: programmation c |