Hello, when we use & operator with char variable then I should expect to get the value inside the char variable due to operator overloading but I am getting a weird output. What is wrong with my code ?
Doubt in using & with char
Hello @yashsharma4304 when you are printing the variable with ampersand sign then you are printing the address of that variable where it is stored.
Here for your reference i am attaching the code:
if you have any further doubt you can ask here:
Happy Laerning!!
1 Like
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.