If we have to hold an address of any data type then we require a pointer of that data type.
But a pointer is simply an address, and an address is always int type. Then why does the holding address of any data type require the pointer of that type?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several reasons:
charis different from reading or writing adouble.Note that there is a pointer type that means “simply a pointer” in C, called
void*. You can use this pointer to transfer an address in memory, but you need to cast it to something useful in order to perform operations in the memory pointed to byvoid*.