differentiate between char a 5 and int a 5
Answers
Answered by
6
Answer:
The main difference between int and char is in int data type you can only numbers and digit,digits varies from 0 to 9 either that can be positive or negative but in char data type you can store only alphabets. Both are data types. int is used to tell that the variable contains the data of type integer.
Hope this helps uh.....!!!!!
Plz plz plz Mark as BRAINLIEST
FOLLOW ME
THANK MY ANS
Attachments:
![](https://hi-static.z-dn.net/files/db3/525b393f8fcc133c0563370effb23c71.jpg)
![](https://hi-static.z-dn.net/files/d5a/9cb5a9f86d2f9a745822c83b394717f4.jpg)
Answered by
2
Char means character value which is written in single inverted commas
For eg char a = ‘m’
Whereas
int contains integer values
For eg : int a = 4
For eg char a = ‘m’
Whereas
int contains integer values
For eg : int a = 4
Similar questions
Math,
4 months ago
Hindi,
4 months ago
Math,
8 months ago
Math,
8 months ago
Social Sciences,
1 year ago