ctype(123.34,integer) - should it throw an error? Why or
why not?



ctype(123.34,integer) - should it throw an error? Why or why not?..

Answer / aravindreddy

It would work fine. As the runtime type of 123.34 would be
double,
and Double can be converted to Integer.

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Why inheritance is important?

1 Answers  


Is Driver Script any how related to AOM?

1 Answers   TCS,


Which ports are used by viruses? UDP/TCP?

1 Answers  


How can you automatically generate interface for the remotable object in .NET with Microsoft tools?

1 Answers  


What security measures exist for .NET Remoting in System.Runtime.Remoting?

1 Answers  


Explain the difference between asp.net and asp?

1 Answers  


WHAT IS .net

3 Answers  


Explain constructor.

2 Answers   Wipro,


What is garbage collection and how it works. Provide a code example of how you can enforce garbage collection in .net?

1 Answers  


Explain Different kinds of methods?

1 Answers   Wipro,


I am constantly writing the drawing procedures with system.drawing.graphics, but having to use the try and dispose blocks is too time-consuming with graphicsobjects. Can I automate this?

1 Answers  


Why do we use the “using” statement?

1 Answers  


Categories