Can we assign char address to char pointer?

if yes,then how to do?
char ch=‘a’;
char *ptr=&ch;
This is giving me wrong o/p

@mb129162
Yes you can
Send me complete code once

@mb129162
You were printing ptr which stores index of ‘a’ which was exactly what the code output
The output was fine
To print ‘a’ you need to make it cout<<*ptr;

I want to see the address which is coming like this a�+ý�not the character…

@mb129162
This address is correct only
Its not necessary that the address will come out like numbers only
This is also correct

but the two addresses don’t match when i’ m doing cout<<(void *)&ch<<endl; Please explain

@mb129162
That even I’m unable to explain sorry
Please ask the mentor this on the whatsapp group
This is beyond my expertise

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.