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


Quick Answer

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.

Continue Reading

Full Answer

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.

Learn more about Computer Programming

Related Questions