By: Ravindra | Last Updated:
If you are a c# beginner or want to start learning the c# programming language, then this program will help you to understand the basics of c# programming. In this program, we are going to share C# program to demonstrate prefix operator with the output.
Copy the below c# program and execute it in your Microsoft Visual Studio IDE (Integrated Development Environment ). At the end of this program, I have shared the output program.
internal class Program
private static void Main(string args)
int Input = 100;
Input = ++Input;
Console.WriteLine("Number After pre Increment : " +
Input = --Input;
Console.WriteLine("Number After pre Decrement : " +
Number After pre Increment : 101
Number After pre Decrement : 100
Ravindra Kumar is a Programmer and an independent consultant from India. He has been a part of the industry for more than 6 years. During his career, he has worked on mutiple projects of the USA and of India (Technology Evangelist at Microsoft). He received his Bachelors of Engineering from Punjan Technical University. He has been a regular speaker of SQL Sessions in Indian IT Company. View all posts by Ravindra