answersLogoWhite

0

casting a value is when the data type is changed from one type to another.

int a = 100;

float b:

b = (float)a;

------

The (float)a casts an int to a float. In C this is automatic but in C++ it is not. For the sake of readability and debugging it is a good idea to put the cast in the code, this is relay helpful 6 months later when you review your work.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What is the advantage of gravity die casting over high pressure die casting?

The tooling for gravity casting costs less than pressure die casting but the part cost in pressure die casting is much less. see Sand Casting. Die Casting: In the high pressure, requires a die casting machine to inject molten liquid or semi-liquid metal to a higher rate of die-casting mold cavity filling and solidification under pressure, forming and casting methods obtained. Gravity Casting: Uses the gravity or weight of the metal to fill the cavity producing a metal part. It does not require the use of an expensive die casting machine. The tooling cost is lesser for gravity casting because of the lower pressures needed to produce parts.


Which is the strongest component die casting or forging or sand casting?

Forging


Which casting making petrol engine carburetor?

Pressure Die Casting


What is the procedure for pumping-out-test for soil permeability in soil mechanics?

The pumping out test can be used to measure the average k value of a stratum of soil below the water table and is effective up to depths of about 45m . A casting of about 400mm diameter are put down on radial lines from the casting, and both the casting and the observation wells are perforated to allow easy entrance of water. the test consist of pumping water out from the central casting at a measured rate (q), and observing the resulting draw down in ground water level by means of the observation wells.


Top gates are provided in which type of casting like as shallow casting or simple or complex or none?

ans is none because top gate are used in very large casting due to erosion occur in this casting