Below are the programs to expect the output by examining the code. Program 1 can we call methods and members from Class B for the

# Category: C# Programming Examples

List of C# program examples, data structure and algorithms.

Subtract 2 numbers without using arithmetic operators – Learn how to subtract 1 from a given input number and also learn how to subtract 2

Given an array of N integers.Find the contiguous sub array with Maximum sum. Contiguous sub array means sub-array with sequence index like (0,1,2..) or(1,2,3…) INPUTN:Size

Find missing number in the sequence in c#- Learn how to find the missing number among the sequence of numbers from 1 to n with

find position of a character in a string in C# – Learn how to find the position of a character with example programs. Input string :

C# program to find largest number in an array with simple logic and example and test cases. Example:Input Array: 2 6 4 8 9Output: 9

Learn how to remove duplicate elements in an array in C# with example. For example, The input array contains 12, 14, 23, 12, 23, 14,

Thread synchronization using monitors in C# -Learn how to synchronize threads in executing a piece of common code using locks and monitors with example programs.

Synchronization: It is a technique that where another thread can share the piece of code (critical section) , only if the current thread complete its

Thread Priority- A threadâ€™s Priority property determines how much execution time it gets relative to other active threads in the operating system. Thread priorities in