Skip to content

Instantly share code, notes, and snippets.

View Mohsents's full-sized avatar

Timur Mohsents

  • Iran, Mashhad
View GitHub Profile
@Mohsents
Mohsents / Tips and Tricks for C++.md
Created August 10, 2023 08:45
Tips and Tricks for C++

Tips and Tricks for C++

Arrays and Pointers

int myArray[] = {1,2,3};
int *myPointer = myArray;

// We can change the value of the array's indexes.
// This line change the 2th index of myArray to 5.
*(myArray + 1) = 5;