Answer to Question #256379 in C++ for ALI

Question #256379

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.



1
Expert's answer
2021-10-29T06:15:27-0400

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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS