int x = character - '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");
int i = 7;
char str[256];
itoa(i,str,10); //Base 10
char c = str[0]; // c="7"
c = i +'0';
Code Example |
---|
C :: memcpy c |
C :: read from stdin c |
C :: how to print in c |
C :: array size in c |
C :: geom boxplot remove outliers |
C :: c read file |
C :: check if string is the same c |
C :: to run Blazor project using CLI |
C :: simple calculator, using switch statement in C |
C :: c zero out array |
C :: How to pass a struct value to a pthread in c? |
C :: solana-test-validator log |
C :: how to read 2d array from a file in c |
C :: how to get file size in c |
C :: mongodb read |
C :: stdio.h |
C :: ecrire programme en C une fonction remplir tableau et un fonction inverser |
C :: declaration in c |
C :: bcopy |
C :: stack and heap memorym in ram |
C :: integer in c |
C :: functions in c programming |
C :: iterating through a linked list |
C :: fungetc |
C :: le reste de division in algorithm c |
C :: c fibonacci series recursion |
C :: Combine two sentences into one langage c |
C :: windows block application au demarrage regegit |
C :: asasz |
C :: 11*179*.9*1.35 |