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

Name some of the languages .NET support?

3 Answers  


How is threading done in .net?

0 Answers  


What are the new features in .net core?

0 Answers  


Explain what is the difference between constants and read-only variables?

0 Answers  


Explain the top .net class that everything is derived from?

0 Answers  






Explain about .net?

0 Answers  


Define marshling?

0 Answers  


Can a dll be changed to an exe?

0 Answers  


What is reflection and what is it for?

0 Answers  


Can u any body send the DotNet Interview questions and answers to my mail please....... mindukuru@yahoo.com

1 Answers  


What is the purpose of enumerable class in .net?

0 Answers  


What is Serialiazation?

1 Answers   TCS,


Categories