C++ casting.


C++ has added a new feature to cast that allows you to cast variables by using a slightly more familuar syntax. Have a look at the example below.

        
    main()
    {
        int var1;
        float var2;

        var2 = float(var1);
    }

The example shows that casting can now look like a function call.


Examples:

o C++ Example program.

See Also:


C References

o C casting.


Top Master Index Keywords Functions


Martin Leslie