Q:What is the data type of pointer variables? Suppose that we don‘t know the name of a variable but we do know its address. Can we access the contents of that variable? Explain briefly.
The data type of pointer variables is a memory address. If we know the type of a variable and its address, but we don't know its name, we can access the contents of that variable by creating a pointer variable of that type and dereferencing the pointer to access the contents of that variable.
Comments
Leave a comment