Unexpected output while comparing pointers


why am i getting ‘A’ in output? can anyone explain me with proper reason ??

thank you :slight_smile:

Hey @kul_boii
Apparently the CB back end compiler assigns NULL to uninitialised pointers. This is however specific to CB compiler and not necessarily true for all compilers.
If your query is resolved please mark it as cleared.

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.