Answers for "how to convert from int to char in c"

C
1

c int to char

int i = 7;
char str[256];

itoa(i,str,10); //Base 10

char c = str[0]; // c="7"
Posted by: Guest on May-07-2022
16

turn a char into an int in c

int x = character - '0';
Posted by: Guest on November-04-2020
4

casting an int to a char in c

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");
Posted by: Guest on October-15-2020

Code answers related to "C"

Browse Popular Code Answers by Language