Last active
July 2, 2017 06:31
-
-
Save mattn9x/0e8ccde12ced00c0a5c6cce5e2597e9f to your computer and use it in GitHub Desktop.
Phân biệt tham chiếu, tham trị
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static int check; | |
| public static void ThayDoi1() | |
| { | |
| check = 1; | |
| } | |
| public static void Thaydoi2() | |
| { | |
| check = 2; | |
| } | |
| public static void ThayDoi3() | |
| { | |
| check = 3; | |
| } | |
| static void Main(string[] args) | |
| { | |
| check = 0; | |
| ThayDoi1(); | |
| Console.WriteLine(check); // Kết quả in ra là: 1 | |
| Console.ReadLine(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment