Q
Q
Qubc2020-09-02 17:00:48
C++ / C#
Qubc, 2020-09-02 17:00:48

What is the literal translation of assignment makes pointer from integer without a cast?

Or initialization makes pointer from integer without a cast ?
Why from? Why makes and not does or uses, for example? Why not assignment is make ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AnT, 2020-09-02
@Qubc

Literally, this can be translated as "assignment makes/forms a pointer from an integer [value] without [using] an explicit cast".
The term "cast" in C means an explicit cast. It's the obvious one.
The combination "makes [...] without a cast" refers to the fact that your assignment operator is trying to perform an implicit conversion from a pointer to an integer value.
The whole message means that the assignment operator (assignment) is used in its code, the right side of which is a pointer (pointer), and the left side is an integer (integer).
Such code is incorrect in C, because the C language generally forbids implicit conversions between integers and pointers. To convert an integer value to a pointer in C requires an explicit cast, i.e. cast.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question