What is an assignment that makes an integer from pointer without a cast?

By Forinfos - 26/10/2025 - 0 comments

In the C programming language, an error of "assignment makes integer from pointer without a cast" means that the code is incorrectly assigning an integer or variable value to a pointer. A pointer is an address.

A value can be assigned to the content of a pointer, and the address of a variable or integer can be assigned to a pointer, but an actual integer or variable value cannot be directly assigned to a pointer. For example, a pointer cannot be set to zero, an integer, but can be set to [null]. To correct the problem, the coding errors must be identified and changed. Such errors may be difficult to locate in complex codes, such as embedded macros.


Comments

Be the first to write a comment for this article.

Related Articles

Trending Articles