AOA sir, kia hum assay kr sktay hain Int a =5 Int *ptr= &a Int &ref= *ptr. Sir will it work will ref get the value of a and then when we do this ref =20 Will a value be changed to 20 or not.
Obviously, it will work because pointer is pointing to variable a, a can be changed using ptr , so with ref as well. Because *ptr is nothing but a, so indirectly you are creating reference variable for a.
You are on fire. Keep on going.
Great job Sir 💯
❤❤
🎉❤
Super ❤😊
AOA sir, kia hum assay kr sktay hain
Int a =5
Int *ptr= &a
Int &ref= *ptr.
Sir will it work will ref get the value of a and then when we do this ref =20
Will a value be changed to 20 or not.
Obviously, it will work because pointer is pointing to variable a, a can be changed using ptr , so with ref as well. Because *ptr is nothing but a, so indirectly you are creating reference variable for a.
Great job Sir 💯