static_cast C++ keyword Query.
I am not able to find out the correct usage of the keyword
can some body explain it with example?
int a = 100, b = 30;
float f = a/b;
int a = 100, b= 30;
float f = static_cast<float>(a/b);
the output of both the progs is same.
what difference has the keyword <static_cast> made in the 2nd prog?
waiting for response
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL