C# Postfix
amiedd
9,547 views
C# Postfix
AmieDD www.amiedd.com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.