Skip to content

Instantly share code, notes, and snippets.

@mopp
Last active December 17, 2020 13:00
Show Gist options
  • Save mopp/f639ca863ba7d4590aa3ae520115d2a1 to your computer and use it in GitHub Desktop.
Save mopp/f639ca863ba7d4590aa3ae520115d2a1 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdint.h>
int main(int argc, char* argv[]) {
// 作成
uint8_t numbers[3] = {1, 2, 3};
// 参照
for (size_t i = 0; i < (sizeof(numbers) / sizeof(numbers[0])); ++i) {
printf("numbers[%zd] = %u\n", i, numbers[0]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment