void *

B

Ben Pfaff

arnuld said:
Wait a minute:

int i = 2.03;

that i will be assigned a value of 2. 2.03 was casted (converted ?)
implicitly to 2.

It was converted. A cast is an operator, and no use of such an
operator appears here.

Here's one excerpt from the standard that may clarify things:

Several operators convert operand values from one type to
another automatically. This subclause specifies the result
required from such an implicit conversion, as well as those
that result from a cast operation (an explicit conversion).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,351
Latest member
RoxiePulli

Latest Threads

Top