Computer Science, asked by jaiswalnilima05, 1 day ago

difference between char and int​

Answers

Answered by q7818648
1

Answer:

The difference is the size in byte of the variable, and from there the different values the variable can hold. A char is required to accept all values between 0 and 127 (included). ... An int is required to be at least a 16 bits signed word, and to accept all values between -32767 and 32767.

Answered by priyadarshinibhowal2
0

Difference between char and int​:

  • When storing numbers that are whole in nature and without decimal values in C, the integer data type is utilised. The int data type in C language allows for the storage of decimal, hexadecimal, as well as octal values.
  • With the utilization of the sizeof operator in C, we can find out how big the int data type is. In C, the unsigned int data type is used to store data values from zero to numbers that re positive. However it is unable to store negative values like the signed int.
  • Only one character may be able to be stored in a variable of the character data type.
  • The character's storage capacity is 1. The simplest form of fundamental data type in C is this one. Almost many compilers just need one byte of memory to store one character.

Learn more here

https://brainly.in/question/1212401?source=archive

#SPJ3

Similar questions