Answer to Question #256400 in C++ for ALI

Question #256400

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-30T00:40:59-0400

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.


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