Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Created January 26, 2021 15:17
Show Gist options
  • Save PrateekKumarSingh/155c34e9bcaa893b8be9bebbe131f2a6 to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/155c34e9bcaa893b8be9bebbe131f2a6 to your computer and use it in GitHub Desktop.
int x = 5;
// value type variables copies the value
int y = x;
// changing the value of 'y' doesn't change the value of 'x'
y = 3;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment