Last active
December 17, 2020 13:00
-
-
Save mopp/f639ca863ba7d4590aa3ae520115d2a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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