When we store a string using char pointer, then where memory will be allocated for string.
If we initialize a char pointer as shown below within a function.
then memory for cp will be allocated in stack as it is local, but where memory will be allocated for "ABC" string.Code:char *cp = "ABC";