+ 3
What does char*p ="abcd" means ?
does it store the string or address of the string?
5 odpowiedzi
+ 3
it contains the address of an array
but the compiler knows to use it as a basic type
+ 3
p is pointing to the beginning of the string. In effect, p is the address of the first letter in memory.
+ 2
it means variable `p` is a pointer to a memory location having a value of `abcd`
+ 2
here, p is used to store the address of string
0
p contains the address location of the the string for example abcd is stored at location 100, p contains 100