what will be the output of the given below coding.
using System;
public class Exercise
{
static void OddNumbers(int a)
{
if (a >= 1)
{
Console.Write("{0}, ", a);
a -= 2;
OddNumbers(a);
}
}
public static int Main()
{
const int Number = 9;
Console.WriteLine("Odd Numbers");
OddNumbers(Number);
Console.WriteLine();
return 0;
}
}
Explain the differences between static, void and public in c#?
How long does it take to learn c# for unity?
Why is it a bad idea to throw your own exceptions?
What is icollection in c#?
what is application domain?
Classes and structs can be declared as static, is this statement true or false?
main concept of c sharp
1) how to delete duplicate records from table in sql server 2005 2) what is run time polymorphism
What is a delegate in c#?
What is Event - Delegate?
what is collections in .net? why we use?
How to assign Null value to Var?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)