Interviewer And Interviewee Guide

C# (Sharp) Programming Language Interview Question:

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

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

Answer2
the ctype(123.34,integer) will work fine no errors
Submitted by: Administrator

Read Online C# (Sharp) Programming Language Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.