C# Postfix


Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

C# Postfix

AmieDD www.amiedd.com

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
class Program
static void Main(string[] args)
int x = 3;
int y = x++;
Console.WriteLine(x+" "+y);

Amie's In-Game Hint:

Postfix evaluates the expression, then performs the incrementing. Assigning the value of x to y and then incrementing x.

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content