--- shvetakapoor2002_cplusplus
<[EMAIL PROTECTED]> wrote:

> Hi All,
>  
> Please help me in understanding what's the
> difference between the two 
> statements below
>  
> [1] cout << "Number: " << static_cast<int>(3.14159)
> << "\n";
> 
> [2] cout << "Number: " << (int)3.14159 << "\n";
>  
> Basically I want to know the difference in using
> static_cast<int> and 
> using (int)
> 
> Thanks,
> Shveta
> 
> 

http://www.cprogramming.com/reference/typecasting/staticcast.html


Mickey M.
Construction Partner Inc.
http://www.constructionpartner.com


       
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

Reply via email to