What Is an Assignment That Makes an Integer From Pointer Without a Cast?

What Is an Assignment That Makes an Integer From Pointer Without a Cast?

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.