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.
 C++ Example program.
C++ Example program.
| Top | Master Index | Keywords | Functions |