Skip to content

Instantly share code, notes, and snippets.

@teruteru128
Created December 9, 2017 06:37
Show Gist options
  • Select an option

  • Save teruteru128/0e12c1c38741216f009e50c675e82178 to your computer and use it in GitHub Desktop.

Select an option

Save teruteru128/0e12c1c38741216f009e50c675e82178 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
#include "main.h"
int main(int argc, char** argv)
{
char* hakatanoshio[7] = {"は", "か", "た", "の", "し", "お", NULL};
char** test = hakatanoshio;
char* chara = NULL;
int i;
for(i = 0; (chara = test[i]) != NULL; i++){
printf("%s!, %d\n", chara, strlen(chara));
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment