If character values are stored as int why cant we hold character variable address in int pointer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If character values are stored as int why cant we hold character variable address in int pointer

27th Mar 2021, 11:17 AM
MUDIT JAIN
MUDIT JAIN - avatar
1 Answer
+ 1
because the address is a hex number of some location in memory. You can hold the actual character itself in an int variable though
27th Mar 2021, 11:39 AM
Slick
Slick - avatar