Why does output is abc? it should be starting addres of cheracter array pointer
when you do char *pointer, you initialise a pointer of char data type that will store address of character data type. Now when you do char *pointer = “abc”
Here abc is a string and your char *pointer will be having address of string[0] that is “a”
So we are not storing entire string in char pointer but only the address of a from which we will get access to iterate over all string elements. so it prints abc If this solved your doubt. Mark it as resolved