Reference to a pointer

What is the difference between ptr and rptr?

If you do char *world = "World"; rptr = world; and then print str, it will print “World”. If you do ptr = world; and then print str, it will print “Hello”.

Leave a Comment