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

Difference between value type & reference types ?

0 Answers  


What is MSIL code ?

3 Answers   TCS,


Is .net a compiler?

0 Answers  


can any one tel me hw to connect database connectivity of dot NET and back end as MS access?

1 Answers  


Explain the differences between server-side code and client-side code.

0 Answers  






I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?

0 Answers  


Explain about .NET services?

0 Answers  


Is there built-in support for logging?

0 Answers  


Explain re-clarification of object based in .net?

0 Answers  


What are the types of assemblies in .net?

0 Answers  


What is CCW (COM Callable Wrapper) ?

1 Answers  


What is shared and repeatable inheritance?

0 Answers  


Categories