Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What will be the output of the following code snippet?
What will be the output of the following code snippet?
✍: Guest
What will be the output of the following code snippet?
using System;
class MainClass
{
static void Main( )
{
new MainClass().Display( 3.56 );
}
private void Display( float anArg )
{
Console.Write( “{0} {1}â€, anArg.GetType(), anArg );
}
double Display( double anArg )
{
Console.Write( “{0} {1}â€, anArg.GetType(), anArg );
return anArg;
}
public decimal Display( decimal anArg )
{
Console.Write( “{0} {1}â€, anArg.GetType(), anArg ); return anArg;
}
}
* System.Single 3.56
* System.Float 3.56
* System.Double 3.56
* System.Decimal 3.56
System.Double 3.56
2014-09-02, 1542👍, 0💬
Popular Posts:
What is the benefit of using #define to declare a constant? Using the #define method of declaring a ...
What is Windows DNA architecture? Note :- If you have worked with classic ASP this question can come...
How To Use "IN OUT" Parameter Properly? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and F...
How To Select All Columns of All Rows from a Table? - MySQL FAQs - SQL SELECT Query Statements with ...
What is CAR (Causal Analysis and Resolution)? The basic purpose of CAR is to analyze all defects, pr...