Toggle Case Problem


This is my code can anyone tell me what i am doing wrong here

hi @akshat42bajpai
I have corrected ur code -->

why are we using “&” here in void and when i deleted it …it wasn’t working

hi @akshat42bajpai
we are using & bcoz we are sending the string by reference, hence changes made are being done in the original variable we used…

hi @akshat42bajpai
i hope its clear now??

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.