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.
when a pointer variable is declared, it is given a specific data type. Therefore, a pointer variable can be of any data types such as int, double, float, etc.
Yes, we access the contents of that variable. This is because pointers can be used to access the content of that variable.
Comments
Leave a comment