Skip to content

Instantly share code, notes, and snippets.

@makotoshimazu
Last active June 17, 2020 14:30
Show Gist options
  • Save makotoshimazu/4719131dd6c5cec0401c737abcc16bad to your computer and use it in GitHub Desktop.
Save makotoshimazu/4719131dd6c5cec0401c737abcc16bad to your computer and use it in GitHub Desktop.
// C
const char* a1 = "https://www.google.com";
const char* a2 = "Hello";
const char* a3 = "bar";
const char* a[3] = {a1, a2, a3};
def foo(x):
print('id(x): %#08x' % id(x))
a = ['hello', 'world']
print('id(a): %#08x' % id(a))
foo(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment