Can pointer be assigned a value?

1 answer

Answer

1049561

2026-07-22 10:35

+ Follow

A pointer is a variable just like any other, so of course it can be assigned a value. However, being a pointer, the value must be a memory address. If you want to assign a value to that memory address rather than the pointer, you must dereference the pointer.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.