In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?
No Answer is Posted For this Question
Be the First to Post Answer
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 the Difference between read only and constant variables?
What kind of the information stored inside the assembly?
What is datasource c#?
For methods inside the interface why can’t you specify the accessibility modifier?
Why is dll used?
My switch statement works differently! Why?
give an example for suspending, resuming, and stopping a thread ?
What does addressof operator do in background ?
Structs are largely redundant in c++. Why does c# have them?
Can list contain duplicates c#?
Can properties be private in c#?