Skip to content

Instantly share code, notes, and snippets.

@veryyoung
Created October 23, 2017 12:42
Show Gist options
  • Save veryyoung/8244883e48e5d1eb8e52a4aff22166b9 to your computer and use it in GitHub Desktop.
Save veryyoung/8244883e48e5d1eb8e52a4aff22166b9 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void) {
int nums[] = {1, 2, 3 , 4, 5};
int length = sizeof(nums) / sizeof(nums[0]);
for(int i=0; i<length; i++){
printf("%d,", nums[i]);
}
printf("%c", 8);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment