Converting int to char in C

后端 未结 7 620
不知归路
不知归路 2021-01-18 03:55

Right now I am trying to convert an int to a char in C programming. After doing research, I found that I should be able to do it like this:

int value = 10;
c         


        
7条回答
  •  抹茶落季
    2021-01-18 04:25

    Check out the ascii table

    The values stored in a char are interpreted as the characters corresponding to that table. The value of 10 is a newline

提交回复
热议问题