+ 3

What does char*p ="abcd" means ?

does it store the string or address of the string?

9th Jan 2017, 7:01 PM
priyanka
priyanka - avatar
5 Answers
+ 3
it contains the address of an array but the compiler knows to use it as a basic type
9th Jan 2017, 8:01 PM
Manny Kroizer
Manny Kroizer - avatar
+ 3
p is pointing to the beginning of the string. In effect, p is the address of the first letter in memory.
9th Jan 2017, 9:09 PM
ifl
ifl - avatar
+ 2
it means variable `p` is a pointer to a memory location having a value of `abcd`
9th Jan 2017, 7:06 PM
Akshay Kadam
+ 2
here, p is used to store the address of string
16th Jan 2017, 2:39 PM
shazia fatima siddiqui
shazia fatima siddiqui - avatar
0
p contains the address location of the the string for example abcd is stored at location 100, p contains 100
23rd Jul 2019, 3:10 PM
à°”à°żà° à°Č్ N