Get Answers to all your Questions

header-bg qa

What is the difference between character and integer type data in c++???

Answers (1)

best_answer

The main difference between these is the size.

Char is generally 8 bits but int is 16 bits.

If you are planning only to store character in variable then you should declare it Char not Int because it will waste the memory of 8 bits.

Posted by

Deependra Verma

View full answer