I am new to C++ Consider the following int number = 5; int *numptr = &number; Herecan say, numptr is a pointer to an integer and it has the address of the location where 5 is stored char * number = "five is number"; However here is it right to say that the 'number' is a pointer to a char and stores the address of the first character in the string(f). If it is, then why does the statement, cout<<number; gives the string itself as the output and not the address where the character 'f' is stored.Also what does '&number' mean when 'number' is a pointer.
R
rahulcrjk
@rahulcrjk