Skip to content

Instantly share code, notes, and snippets.

@Sanokei
Last active December 1, 2021 23:51
Show Gist options
  • Save Sanokei/150222c274b4131779dda584764394ec to your computer and use it in GitHub Desktop.
Save Sanokei/150222c274b4131779dda584764394ec to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main() {
string s[2] = {"HI","hi"};
char c = 'A';
cout << s[1][1] << endl; // output
cout << c - 1 << endl; //output:
s[0][0] = c;
cout << s[0] << endl; //output:
c+=2;
cout << c << endl; //output:
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment