Difference between char and int when declaring character

前端 未结 5 1604
梦谈多话
梦谈多话 2020-12-07 18:49

I just started learning C and am rather confused over declaring characters using int and char.

I am well aware that any characters are made up of integers in the se

5条回答
  •  囚心锁ツ
    2020-12-07 19:28

    Size of an int is 4 bytes on most architectures, while the size of a char is 1 byte.

提交回复
热议问题