How many types of namespaces available in version4?
No Answer is Posted For this Question
Be the First to Post Answer
i have a question which is quite simple but yet complicated for me my question is why do we use void, if it does not return anything to the compiler? if it is used for normal display it can also be done by what is called Console.Write() or Consol.WriteLine() and if i do not use void with my method then my compiler throws me an error. if i return a value say integer then i write public int fun() display of the result can also be done here then why is it so necessary to use void with a function and why so compiler throw us an error if v don't use void return type?
What is the and operator in c#?
What standard types does c# use?
hi, I am a begineer to c sharp. I have written a code for finding out prime numbers. Can anyone identify what are the flaws in my code. Kindly donot complex the code or present logic because i am new to c sharp and just started learning programming language.Thanks in advance. class Program { static void Main(string[] args) { int a,b=1; a = int.Parse(Console.ReadLine()); c= int.Parse(Console.ReadLine()); if (a % b == 0 && a % 2 != 0 && a % a == 0) Console.WriteLine(a); else if (a % b == 0 && a % 2 == 0) Console.WriteLine(a%2); Console.WriteLine("Number is not PRIME"); Console.ReadLine(); } } }
What is use of a HashTable in .NET?
Why do we use parameters in c#?
Is it possible to have different access modifiers on the get/set methods of a property?
Explain the top reason to use c# language?
what is IDisposal interface,IComparable,IEquatable,IFormatable
What is a struct in C#?
What is the use of expression tree in c#?
Why hashtable is thread safe in c#?